BUILD.bazel.in 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "grpclb.go",
  6. "grpclb_picker.go",
  7. "grpclb_remote_balancer.go",
  8. "grpclb_util.go",
  9. ],
  10. importpath = "google.golang.org/grpc/balancer/grpclb",
  11. visibility = ["//visibility:public"],
  12. deps = [
  13. "//:go_default_library",
  14. "//balancer:go_default_library",
  15. "//balancer/grpclb/grpc_lb_v1:go_default_library",
  16. "//codes:go_default_library",
  17. "//connectivity:go_default_library",
  18. "//grpclog:go_default_library",
  19. "//internal:go_default_library",
  20. "//internal/backoff:go_default_library",
  21. "//internal/channelz:go_default_library",
  22. "//metadata:go_default_library",
  23. "//resolver:go_default_library",
  24. "//status:go_default_library",
  25. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  26. "@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
  27. "@org_golang_x_net//context:go_default_library",
  28. ],
  29. )
  30. go_test(
  31. name = "go_default_test",
  32. srcs = [
  33. "grpclb_test.go",
  34. "grpclb_util_test.go",
  35. ],
  36. embed = [":go_default_library"],
  37. deps = [
  38. "//:go_default_library",
  39. "//balancer:go_default_library",
  40. "//balancer/grpclb/grpc_lb_v1:go_default_library",
  41. "//codes:go_default_library",
  42. "//credentials:go_default_library",
  43. "//grpclog/glogger:go_default_library",
  44. "//internal/leakcheck:go_default_library",
  45. "//metadata:go_default_library",
  46. "//peer:go_default_library",
  47. "//resolver:go_default_library",
  48. "//resolver/manual:go_default_library",
  49. "//status:go_default_library",
  50. "//test/grpc_testing:go_default_library",
  51. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  52. "@org_golang_x_net//context:go_default_library",
  53. ],
  54. )