package option
import "cloud.google.com/go/bigtable/internal/option"
Package option contains common code for dealing with client options.
Index ¶
- func ClientInterceptorOptions(stream []grpc.StreamClientInterceptor, unary []grpc.UnaryClientInterceptor) []option.ClientOption
- func DefaultClientOptions(endpoint, mtlsEndpoint, scope, userAgent string) ([]option.ClientOption, error)
- func WithFeatureFlags() metadata.MD
Functions ¶
func ClientInterceptorOptions ¶
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.
func WithFeatureFlags ¶
WithFeatureFlags set the feature flags the client supports in the `bigtable-features` header sent on each request. Intended for use by Google-written clients.
Source Files ¶
option.go
- Version
- v1.23.0
- Published
- Apr 29, 2024
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 10 hours ago –
Tools for package owners.