api

package
v3.32.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAll

func CloseAll()

CloseAll closes all remaining gRPC connections.

func Dial

func Dial(ctx context.Context, target string) (*grpc.ClientConn, error)

Dial dials a gRPC connection to the target.

func GetCallOptions

func GetCallOptions() (opts []grpc.CallOption)

GetCallOptions returns the gRPC call options.

func GetDialOptions

func GetDialOptions() []grpc.DialOption

GetDialOptions gets the dial options for a gRPC connection.

func SetAuth

func SetAuth(authType, authValue string)

SetAuth sets the authentication information.

func SetDumpRequests

func SetDumpRequests(dump bool)

SetDumpRequests configures the API options to dump gRPC requests.

func SetInsecure

func SetInsecure(insecure bool)

SetInsecure configures the API to use insecure connections.

func SetLogger

func SetLogger(logger log.Interface)

SetLogger sets the default API logger

func SetRetryDefaultTimeout added in v3.17.2

func SetRetryDefaultTimeout(t time.Duration)

SetRetryDefaultTimeout configures the default timeout before making a retry in a failed request.

func SetRetryEnableMetadata added in v3.17.2

func SetRetryEnableMetadata(b bool)

SetRetryEnableMetadata configures if the retry procedure will read the request's metadata or not.

func SetRetryJitter added in v3.17.2

func SetRetryJitter(f float64)

SetRetryJitter configures the fraction to be used in the deviation procedure of the rpcretry timeout.

func SetRetryMax added in v3.17.2

func SetRetryMax(rm uint)

SetRetryMax configures the amount of time the client will retry the request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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