BUILD 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. "comet.go",
  11. "push.go",
  12. "room.go",
  13. "service.go",
  14. ],
  15. importpath = "go-common/app/job/main/broadcast/service",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/interface/main/broadcast/api/grpc/v1:go_default_library",
  20. "//app/job/main/broadcast/conf:go_default_library",
  21. "//app/service/main/broadcast/libs/bytes:go_default_library",
  22. "//app/service/main/broadcast/model:go_default_library",
  23. "//library/conf/env:go_default_library",
  24. "//library/log:go_default_library",
  25. "//library/naming:go_default_library",
  26. "//library/naming/discovery:go_default_library",
  27. "//library/queue/databus:go_default_library",
  28. "//library/time:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [":package-srcs"],
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. )
  43. go_test(
  44. name = "go_default_test",
  45. srcs = ["service_test.go"],
  46. embed = [":go_default_library"],
  47. rundir = ".",
  48. tags = ["automanaged"],
  49. deps = [
  50. "//app/job/main/broadcast/conf:go_default_library",
  51. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  52. ],
  53. )