BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "captcha.go",
  11. "dao.go",
  12. "databus.go",
  13. "memcache.go",
  14. "mysql.go",
  15. "redis.go",
  16. ],
  17. importpath = "go-common/app/interface/main/answer/dao",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/interface/main/answer/conf:go_default_library",
  22. "//app/interface/main/answer/model:go_default_library",
  23. "//library/cache/memcache:go_default_library",
  24. "//library/cache/redis:go_default_library",
  25. "//library/database/sql:go_default_library",
  26. "//library/ecode:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/net/http/blademaster:go_default_library",
  29. "//library/net/metadata:go_default_library",
  30. "//library/queue/databus:go_default_library",
  31. "//library/xstr:go_default_library",
  32. "//vendor/github.com/pkg/errors:go_default_library",
  33. ],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [
  44. ":package-srcs",
  45. "//app/interface/main/answer/dao/account:all-srcs",
  46. "//app/interface/main/answer/dao/geetest:all-srcs",
  47. ],
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:public"],
  50. )
  51. go_test(
  52. name = "go_default_test",
  53. srcs = [
  54. "captcha_test.go",
  55. "dao_test.go",
  56. "memcache_test.go",
  57. "mysql_test.go",
  58. "redis_test.go",
  59. ],
  60. embed = [":go_default_library"],
  61. rundir = ".",
  62. tags = ["automanaged"],
  63. deps = [
  64. "//app/interface/main/answer/conf:go_default_library",
  65. "//app/interface/main/answer/model:go_default_library",
  66. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  67. ],
  68. )