BUILD.bazel.in 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "bdp_estimator.go",
  6. "controlbuf.go",
  7. "flowcontrol.go",
  8. "go16.go",
  9. "go17.go",
  10. "handler_server.go",
  11. "http2_client.go",
  12. "http2_server.go",
  13. "http_util.go",
  14. "log.go",
  15. "transport.go",
  16. ],
  17. importpath = "google.golang.org/grpc/transport",
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//codes:go_default_library",
  21. "//credentials:go_default_library",
  22. "//grpclog:go_default_library",
  23. "//internal/channelz:go_default_library",
  24. "//internal/grpcrand:go_default_library",
  25. "//keepalive:go_default_library",
  26. "//metadata:go_default_library",
  27. "//peer:go_default_library",
  28. "//stats:go_default_library",
  29. "//status:go_default_library",
  30. "//tap:go_default_library",
  31. "@com_github_golang_protobuf//proto:go_default_library",
  32. "@org_golang_google_genproto//googleapis/rpc/status:go_default_library",
  33. "@org_golang_x_net//context:go_default_library",
  34. "@org_golang_x_net//http2:go_default_library",
  35. "@org_golang_x_net//http2/hpack:go_default_library",
  36. ],
  37. )
  38. go_test(
  39. name = "go_default_test",
  40. srcs = [
  41. "handler_server_test.go",
  42. "http_util_test.go",
  43. "transport_test.go",
  44. ],
  45. embed = [":go_default_library"],
  46. deps = [
  47. "//codes:go_default_library",
  48. "//internal/leakcheck:go_default_library",
  49. "//keepalive:go_default_library",
  50. "//metadata:go_default_library",
  51. "//status:go_default_library",
  52. "@com_github_golang_protobuf//proto:go_default_library",
  53. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  54. "@org_golang_google_genproto//googleapis/rpc/errdetails:go_default_library",
  55. "@org_golang_x_net//context:go_default_library",
  56. "@org_golang_x_net//http2:go_default_library",
  57. "@org_golang_x_net//http2/hpack:go_default_library",
  58. ],
  59. )