BUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "dao.go",
  11. "online_filter.go",
  12. "room_feature.go",
  13. ],
  14. importpath = "go-common/app/service/live/recommend/internal/dao",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/service/live/recommend/internal/conf:go_default_library",
  19. "//app/service/live/recommend/recconst:go_default_library",
  20. "//app/service/live/relation/api/liverpc:go_default_library",
  21. "//app/service/live/relation/api/liverpc/v1:go_default_library",
  22. "//app/service/live/room/api/liverpc:go_default_library",
  23. "//app/service/live/room/api/liverpc/v1:go_default_library",
  24. "//app/service/live/room/api/liverpc/v2:go_default_library",
  25. "//library/cache/redis:go_default_library",
  26. "//library/log:go_default_library",
  27. "//library/net/rpc/liverpc:go_default_library",
  28. "//library/sync/errgroup:go_default_library",
  29. "//vendor/github.com/pkg/errors:go_default_library",
  30. ],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = [
  47. "dao_test.go",
  48. "room_feature_test.go",
  49. ],
  50. embed = [":go_default_library"],
  51. tags = ["automanaged"],
  52. deps = [
  53. "//app/service/live/recommend/internal/conf:go_default_library",
  54. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  55. ],
  56. )