BUILD 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "account_notify_test.go",
  11. "dao_test.go",
  12. "databus_test.go",
  13. "exp_test.go",
  14. "http_test.go",
  15. "member_log_test.go",
  16. "member_old_test.go",
  17. "member_test.go",
  18. "memcache_test.go",
  19. "realname_test.go",
  20. "redis_test.go",
  21. ],
  22. embed = [":go_default_library"],
  23. rundir = ".",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/job/main/member/conf:go_default_library",
  27. "//app/job/main/member/model:go_default_library",
  28. "//library/database/sql:go_default_library",
  29. "//library/queue/databus:go_default_library",
  30. "//library/time:go_default_library",
  31. "//vendor/github.com/bouk/monkey:go_default_library",
  32. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  33. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  34. ],
  35. )
  36. go_library(
  37. name = "go_default_library",
  38. srcs = [
  39. "account_notify.go",
  40. "dao.go",
  41. "databus.go",
  42. "exp.go",
  43. "hbase.go",
  44. "http.go",
  45. "member.go",
  46. "member_log.go",
  47. "member_old.go",
  48. "memcache.go",
  49. "realname.go",
  50. "redis.go",
  51. ],
  52. importpath = "go-common/app/job/main/member/dao",
  53. tags = ["automanaged"],
  54. deps = [
  55. "//app/job/main/member/conf:go_default_library",
  56. "//app/job/main/member/dao/block:go_default_library",
  57. "//app/job/main/member/model:go_default_library",
  58. "//app/service/main/member/model:go_default_library",
  59. "//library/cache/memcache:go_default_library",
  60. "//library/cache/redis:go_default_library",
  61. "//library/database/sql:go_default_library",
  62. "//library/ecode:go_default_library",
  63. "//library/log:go_default_library",
  64. "//library/net/http/blademaster:go_default_library",
  65. "//library/queue/databus:go_default_library",
  66. "//library/queue/databus/report:go_default_library",
  67. "//library/time:go_default_library",
  68. "//library/xstr:go_default_library",
  69. "//vendor/github.com/pkg/errors:go_default_library",
  70. ],
  71. )
  72. filegroup(
  73. name = "package-srcs",
  74. srcs = glob(["**"]),
  75. tags = ["automanaged"],
  76. visibility = ["//visibility:private"],
  77. )
  78. filegroup(
  79. name = "all-srcs",
  80. srcs = [
  81. ":package-srcs",
  82. "//app/job/main/member/dao/block:all-srcs",
  83. ],
  84. tags = ["automanaged"],
  85. visibility = ["//visibility:public"],
  86. )