BUILD 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 = ["service_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/job/main/member/conf:go_default_library",
  15. "//app/job/main/member/model:go_default_library",
  16. "//library/log:go_default_library",
  17. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  18. ],
  19. )
  20. go_library(
  21. name = "go_default_library",
  22. srcs = [
  23. "base.go",
  24. "cache_delay.go",
  25. "check.go",
  26. "exp.go",
  27. "fixer.go",
  28. "member.go",
  29. "moral.go",
  30. "realname.go",
  31. "service.go",
  32. "subproc.go",
  33. ],
  34. importpath = "go-common/app/job/main/member/service",
  35. tags = ["automanaged"],
  36. deps = [
  37. "//app/interface/main/account/service/realname/crypto:go_default_library",
  38. "//app/job/main/member/conf:go_default_library",
  39. "//app/job/main/member/dao:go_default_library",
  40. "//app/job/main/member/model:go_default_library",
  41. "//app/job/main/member/model/queue:go_default_library",
  42. "//app/job/main/member/service/block:go_default_library",
  43. "//app/service/main/member/api/gorpc:go_default_library",
  44. "//app/service/main/member/model:go_default_library",
  45. "//app/service/main/share/model:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/log/infoc:go_default_library",
  48. "//library/net/ip:go_default_library",
  49. "//library/queue/databus:go_default_library",
  50. "//library/queue/databus/databusutil:go_default_library",
  51. "//vendor/github.com/pkg/errors:go_default_library",
  52. "//vendor/golang.org/x/time/rate:go_default_library",
  53. ],
  54. )
  55. filegroup(
  56. name = "package-srcs",
  57. srcs = glob(["**"]),
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:private"],
  60. )
  61. filegroup(
  62. name = "all-srcs",
  63. srcs = [
  64. ":package-srcs",
  65. "//app/job/main/member/service/block:all-srcs",
  66. ],
  67. tags = ["automanaged"],
  68. visibility = ["//visibility:public"],
  69. )