BUILD 2.1 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. "api_test.go",
  11. "dao_test.go",
  12. "memcache_test.go",
  13. "stat_test.go",
  14. "view_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/interface/main/app-view/conf:go_default_library",
  21. "//app/service/main/archive/model/archive:go_default_library",
  22. "//library/net/rpc:go_default_library",
  23. "//library/time:go_default_library",
  24. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "api.go",
  31. "bnj.go",
  32. "dao.go",
  33. "memcache.go",
  34. "stat.go",
  35. "view.go",
  36. ],
  37. importpath = "go-common/app/interface/main/app-view/dao/archive",
  38. tags = ["automanaged"],
  39. deps = [
  40. "//app/interface/main/app-view/conf:go_default_library",
  41. "//app/interface/main/app-view/model/view:go_default_library",
  42. "//app/interface/main/history/model:go_default_library",
  43. "//app/interface/main/history/rpc/client:go_default_library",
  44. "//app/service/main/archive/api:go_default_library",
  45. "//app/service/main/archive/api/gorpc:go_default_library",
  46. "//app/service/main/archive/model/archive:go_default_library",
  47. "//library/cache/memcache:go_default_library",
  48. "//library/ecode:go_default_library",
  49. "//library/log:go_default_library",
  50. "//library/net/http/blademaster:go_default_library",
  51. "//library/net/metadata:go_default_library",
  52. "//library/sync/errgroup:go_default_library",
  53. "//library/xstr:go_default_library",
  54. "//vendor/github.com/pkg/errors: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. )