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.37.0 (latest)
Published
Apr 15, 2025
Platform
js/wasm
Imports
10 packages
Last checked
55 seconds ago

Tools for package owners.