BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. load(
  7. "@io_bazel_rules_go//proto:def.bzl",
  8. "go_proto_library",
  9. )
  10. proto_library(
  11. name = "v1_proto",
  12. srcs = [
  13. "area.proto",
  14. "bulletin.proto",
  15. "guest.proto",
  16. "item.proto",
  17. "place.proto",
  18. "screen.proto",
  19. "seat.proto",
  20. "ticket.proto",
  21. "time.proto",
  22. "venue.proto",
  23. ],
  24. tags = ["automanaged"],
  25. deps = ["@gogo_special_proto//github.com/gogo/protobuf/gogoproto"],
  26. )
  27. go_proto_library(
  28. name = "v1_go_proto",
  29. compilers = ["@io_bazel_rules_go//proto:gogofast_grpc"],
  30. importpath = "go-common/app/service/openplatform/ticket-item/api/grpc/v1",
  31. proto = ":v1_proto",
  32. tags = ["automanaged"],
  33. deps = ["@com_github_gogo_protobuf//gogoproto:go_default_library"],
  34. )
  35. go_library(
  36. name = "go_default_library",
  37. srcs = ["client.go"],
  38. embed = [":v1_go_proto"],
  39. importpath = "go-common/app/service/openplatform/ticket-item/api/grpc/v1",
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. deps = [
  43. "//library/log:go_default_library",
  44. "//library/net/rpc/warden:go_default_library",
  45. "//library/net/rpc/warden/balancer/wrr:go_default_library",
  46. "@com_github_gogo_protobuf//gogoproto:go_default_library",
  47. "@com_github_gogo_protobuf//proto:go_default_library",
  48. "@org_golang_google_grpc//:go_default_library",
  49. "@org_golang_x_net//context:go_default_library",
  50. ],
  51. )
  52. filegroup(
  53. name = "package-srcs",
  54. srcs = glob(["**"]),
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:private"],
  57. )
  58. filegroup(
  59. name = "all-srcs",
  60. srcs = [":package-srcs"],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )