BUILD 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. "dao_test.go",
  11. "databus_test.go",
  12. "exp_test.go",
  13. "hbase_test.go",
  14. "member_log_test.go",
  15. "memcache_test.go",
  16. "message_test.go",
  17. "moral_test.go",
  18. "mysql_test.go",
  19. "property_review_test.go",
  20. "realname_test.go",
  21. "redis_test.go",
  22. ],
  23. embed = [":go_default_library"],
  24. rundir = ".",
  25. tags = ["automanaged"],
  26. deps = [
  27. "//app/service/main/member/conf:go_default_library",
  28. "//app/service/main/member/model:go_default_library",
  29. "//library/cache/memcache: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. "dao.go",
  40. "databus.go",
  41. "exp.go",
  42. "hbase.go",
  43. "member_log.go",
  44. "memcache.go",
  45. "message.go",
  46. "moral.go",
  47. "mysql.go",
  48. "property_review.go",
  49. "realname.go",
  50. "redis.go",
  51. ],
  52. importpath = "go-common/app/service/main/member/dao",
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:public"],
  55. deps = [
  56. "//app/service/main/member/conf:go_default_library",
  57. "//app/service/main/member/dao/block: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/net/metadata:go_default_library",
  66. "//library/queue/databus:go_default_library",
  67. "//library/queue/databus/report:go_default_library",
  68. "//library/sync/pipeline/fanout:go_default_library",
  69. "//library/time:go_default_library",
  70. "//vendor/github.com/pkg/errors:go_default_library",
  71. ],
  72. )
  73. filegroup(
  74. name = "package-srcs",
  75. srcs = glob(["**"]),
  76. tags = ["automanaged"],
  77. visibility = ["//visibility:private"],
  78. )
  79. filegroup(
  80. name = "all-srcs",
  81. srcs = [
  82. ":package-srcs",
  83. "//app/service/main/member/dao/block:all-srcs",
  84. ],
  85. tags = ["automanaged"],
  86. visibility = ["//visibility:public"],
  87. )