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.

Source Files

option.go

Version
v1.35.0 (latest)
Published
Jan 22, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
6 days ago

Tools for package owners.