BUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. go_library(
  11. name = "go_default_library",
  12. srcs = [
  13. "api.bm.go",
  14. "client.go",
  15. "livecheck.bm.go",
  16. "titans.bm.go",
  17. ],
  18. embed = [":v1_go_proto"],
  19. importpath = "go-common/app/service/live/resource/api/grpc/v1",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//library/net/http/blademaster:go_default_library",
  24. "//library/net/rpc/warden:go_default_library",
  25. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  26. "@com_github_gogo_protobuf//proto:go_default_library",
  27. "@org_golang_google_grpc//:go_default_library",
  28. "@org_golang_x_net//context: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. proto_library(
  44. name = "v1_proto",
  45. srcs = [
  46. "api.proto",
  47. "livecheck.proto",
  48. "titans.proto",
  49. ],
  50. tags = ["automanaged"],
  51. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  52. )
  53. go_proto_library(
  54. name = "v1_go_proto",
  55. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  56. importpath = "go-common/app/service/live/resource/api/grpc/v1",
  57. proto = ":v1_proto",
  58. tags = ["automanaged"],
  59. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  60. )