BUILD 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. "bucket.go",
  11. "channel.go",
  12. "errors.go",
  13. "noauth.go",
  14. "operation.go",
  15. "report.go",
  16. "ring.go",
  17. "room.go",
  18. "round.go",
  19. "server.go",
  20. "server_tcp.go",
  21. "server_tcp_v1.go",
  22. "server_websocket.go",
  23. "server_websocket_v1.go",
  24. "whitelist.go",
  25. ],
  26. importpath = "go-common/app/interface/main/broadcast/server",
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. deps = [
  30. "//app/interface/main/broadcast/conf:go_default_library",
  31. "//app/interface/main/broadcast/model:go_default_library",
  32. "//app/service/main/broadcast/api/grpc/v1:go_default_library",
  33. "//app/service/main/broadcast/libs/bufio:go_default_library",
  34. "//app/service/main/broadcast/libs/bytes:go_default_library",
  35. "//app/service/main/broadcast/libs/time:go_default_library",
  36. "//app/service/main/broadcast/libs/websocket:go_default_library",
  37. "//app/service/main/broadcast/model:go_default_library",
  38. "//library/conf/env:go_default_library",
  39. "//library/ecode:go_default_library",
  40. "//library/log:go_default_library",
  41. "//library/net/http/blademaster:go_default_library",
  42. "//library/net/http/blademaster/render:go_default_library",
  43. "//library/net/metadata:go_default_library",
  44. "//library/net/netutil:go_default_library",
  45. "//vendor/github.com/google/uuid:go_default_library",
  46. "//vendor/github.com/zhenjl/cityhash:go_default_library",
  47. "@com_github_gogo_protobuf//proto:go_default_library",
  48. "@com_github_gogo_protobuf//types:go_default_library",
  49. "@org_golang_google_grpc//:go_default_library",
  50. "@org_golang_google_grpc//encoding/gzip:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [
  62. ":package-srcs",
  63. "//app/interface/main/broadcast/server/grpc:all-srcs",
  64. "//app/interface/main/broadcast/server/http:all-srcs",
  65. ],
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:public"],
  68. )
  69. go_test(
  70. name = "go_default_test",
  71. srcs = ["report_test.go"],
  72. embed = [":go_default_library"],
  73. tags = ["automanaged"],
  74. )