BUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. "config_test.go",
  11. "d_test.go",
  12. "filter_test.go",
  13. "hbase_test.go",
  14. "push_test.go",
  15. "switch_test.go",
  16. "task_test.go",
  17. ],
  18. embed = [":go_default_library"],
  19. rundir = ".",
  20. tags = ["automanaged"],
  21. deps = [
  22. "//app/interface/live/push-live/conf:go_default_library",
  23. "//app/interface/live/push-live/model:go_default_library",
  24. "//library/cache/redis:go_default_library",
  25. "//library/log: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. "blacklist.go",
  33. "config.go",
  34. "dao.go",
  35. "filter.go",
  36. "hbase.go",
  37. "push.go",
  38. "switch.go",
  39. "task.go",
  40. ],
  41. importpath = "go-common/app/interface/live/push-live/dao",
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. deps = [
  45. "//app/interface/live/push-live/conf:go_default_library",
  46. "//app/interface/live/push-live/model:go_default_library",
  47. "//library/cache/redis:go_default_library",
  48. "//library/database/hbase.v2:go_default_library",
  49. "//library/database/sql:go_default_library",
  50. "//library/log:go_default_library",
  51. "//library/net/http/blademaster:go_default_library",
  52. "//library/stat/prom:go_default_library",
  53. "//library/sync/errgroup:go_default_library",
  54. "//library/xstr:go_default_library",
  55. "//vendor/github.com/pkg/errors:go_default_library",
  56. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  57. ],
  58. )
  59. filegroup(
  60. name = "package-srcs",
  61. srcs = glob(["**"]),
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:private"],
  64. )
  65. filegroup(
  66. name = "all-srcs",
  67. srcs = [":package-srcs"],
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:public"],
  70. )