BUILD 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. "archive_test.go",
  11. "limit_test.go",
  12. "service_test.go",
  13. "setting_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. rundir = ".",
  17. tags = ["automanaged"],
  18. deps = [
  19. "//app/interface/main/push-archive/conf:go_default_library",
  20. "//app/interface/main/push-archive/dao:go_default_library",
  21. "//app/interface/main/push-archive/model:go_default_library",
  22. "//app/service/main/push/api/grpc/v1:go_default_library",
  23. "//library/ecode:go_default_library",
  24. "//library/net/http/blademaster:go_default_library",
  25. "//library/time:go_default_library",
  26. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  27. ],
  28. )
  29. go_library(
  30. name = "go_default_library",
  31. srcs = [
  32. "abtest.go",
  33. "archive.go",
  34. "limit.go",
  35. "relation.go",
  36. "service.go",
  37. "setting.go",
  38. "statistics.go",
  39. ],
  40. importpath = "go-common/app/interface/main/push-archive/service",
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. deps = [
  44. "//app/interface/main/push-archive/conf:go_default_library",
  45. "//app/interface/main/push-archive/dao:go_default_library",
  46. "//app/interface/main/push-archive/model:go_default_library",
  47. "//app/service/main/account/model:go_default_library",
  48. "//app/service/main/account/rpc/client:go_default_library",
  49. "//app/service/main/push/api/grpc/v1:go_default_library",
  50. "//library/cache:go_default_library",
  51. "//library/conf/env:go_default_library",
  52. "//library/log:go_default_library",
  53. "//library/net/http/blademaster:go_default_library",
  54. "//library/queue/databus:go_default_library",
  55. ],
  56. )
  57. filegroup(
  58. name = "package-srcs",
  59. srcs = glob(["**"]),
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:private"],
  62. )
  63. filegroup(
  64. name = "all-srcs",
  65. srcs = [":package-srcs"],
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:public"],
  68. )