aboutsummaryrefslogtreecommitdiff
path: root/vendor/google.golang.org/cloud/option.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/google.golang.org/cloud/option.go')
-rw-r--r--vendor/google.golang.org/cloud/option.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/google.golang.org/cloud/option.go b/vendor/google.golang.org/cloud/option.go
index 4788c67..c012c73 100644
--- a/vendor/google.golang.org/cloud/option.go
+++ b/vendor/google.golang.org/cloud/option.go
@@ -79,3 +79,10 @@ func WithBaseGRPC(conn *grpc.ClientConn) ClientOption {
func WithGRPCDialOption(o grpc.DialOption) ClientOption {
return wrapOpt{option.WithGRPCDialOption(o)}
}
+
+// WithGRPCConnectionPool returns a ClientOption that creates a pool of gRPC
+// connections that requests will be balanced between.
+// This is an EXPERIMENTAL API and may be changed or removed in the future.
+func WithGRPCConnectionPool(size int) ClientOption {
+ return wrapOpt{option.WithGRPCConnectionPool(size)}
+}