BUILD 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. "history_test.go",
  11. "service_test.go",
  12. "toview_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = [
  18. "//app/interface/main/history/conf:go_default_library",
  19. "//app/interface/main/history/model:go_default_library",
  20. "//library/cache/redis:go_default_library",
  21. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  22. ],
  23. )
  24. go_library(
  25. name = "go_default_library",
  26. srcs = [
  27. "history.go",
  28. "history_service.go",
  29. "rpc.go",
  30. "service.go",
  31. "toview.go",
  32. ],
  33. importpath = "go-common/app/interface/main/history/service",
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. deps = [
  37. "//app/interface/main/history/conf:go_default_library",
  38. "//app/interface/main/history/dao/history:go_default_library",
  39. "//app/interface/main/history/dao/toview:go_default_library",
  40. "//app/interface/main/history/model:go_default_library",
  41. "//app/service/main/archive/api/gorpc:go_default_library",
  42. "//app/service/main/archive/model/archive:go_default_library",
  43. "//app/service/main/favorite/api/gorpc:go_default_library",
  44. "//app/service/main/favorite/model:go_default_library",
  45. "//app/service/main/history/api/grpc:go_default_library",
  46. "//app/service/main/history/model:go_default_library",
  47. "//library/ecode:go_default_library",
  48. "//library/log:go_default_library",
  49. "//library/net/metadata:go_default_library",
  50. "//library/queue/databus/report:go_default_library",
  51. "//library/sync/pipeline/fanout:go_default_library",
  52. "//vendor/github.com/pkg/errors: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 = [":package-srcs"],
  64. tags = ["automanaged"],
  65. visibility = ["//visibility:public"],
  66. )