option

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL