package option

import "cloud.google.com/go/bigtable/internal/option"

Package option contains common code for dealing with client options.

Index

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

func WithFeatureFlags() metadata.MD

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.24.0
Published
May 28, 2024
Platform
darwin/amd64
Imports
13 packages
Last checked
1 minute ago

Tools for package owners.