BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. "bangumi_test.go",
  11. "dao_test.go",
  12. "memcache_test.go",
  13. "redis_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. rundir = ".",
  17. tags = ["automanaged"],
  18. deps = [
  19. "//app/service/main/archive/api:go_default_library",
  20. "//app/service/main/archive/model/archive:go_default_library",
  21. "//app/service/main/feed/conf:go_default_library",
  22. "//app/service/main/feed/model: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. "bangumi.go",
  31. "dao.go",
  32. "memcache.go",
  33. "redis.go",
  34. ],
  35. importpath = "go-common/app/service/main/feed/dao",
  36. tags = ["automanaged"],
  37. deps = [
  38. "//app/interface/openplatform/article/model:go_default_library",
  39. "//app/service/main/archive/api:go_default_library",
  40. "//app/service/main/archive/model/archive:go_default_library",
  41. "//app/service/main/feed/conf:go_default_library",
  42. "//app/service/main/feed/model:go_default_library",
  43. "//library/cache/memcache:go_default_library",
  44. "//library/cache/redis:go_default_library",
  45. "//library/ecode:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/net/http/blademaster:go_default_library",
  48. "//library/stat/prom:go_default_library",
  49. "//library/sync/errgroup:go_default_library",
  50. "//library/time:go_default_library",
  51. "//library/xstr:go_default_library",
  52. ],
  53. )
  54. filegroup(
  55. name = "package-srcs",
  56. srcs = glob(["**"]),
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:private"],
  59. )
  60. filegroup(
  61. name = "all-srcs",
  62. srcs = [":package-srcs"],
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:public"],
  65. )