Documentation ¶
Overview ¶
Package option contains common code for dealing with client options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientInterceptorOptions ¶ added in v1.2.0
func ClientInterceptorOptions(stream []grpc.StreamClientInterceptor, unary []grpc.UnaryClientInterceptor) []option.ClientOption
ClientInterceptorOptions returns client options to use for the client's gRPC connection, using the given streaming and unary RPC interceptors.
The passed interceptors are applied after internal interceptors which inject Google client information into the gRPC context.
func DefaultClientOptions ¶
func DefaultClientOptions(endpoint, mtlsEndpoint, scope, userAgent string) ([]option.ClientOption, error)
DefaultClientOptions returns the default client options to use for the client's gRPC connection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.