Documentation
¶
Index ¶
- func AddCA(pemBytes []byte) (err error)
- func CloseAll()
- func Dial(ctx context.Context, target string) (*grpc.ClientConn, error)
- func GetDialOptions() (opts []grpc.DialOption)
- func SetAuth(authType, authValue string)
- func SetInsecure(insecure bool)
- func SetLogger(logger log.Interface)
- func SetRetryDefaultTimeout(t time.Duration)
- func SetRetryEnableMetadata(b bool)
- func SetRetryJitter(f float64)
- func SetRetryMax(rm uint)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDialOptions ¶
func GetDialOptions() (opts []grpc.DialOption)
GetDialOptions gets the dial options for a gRPC connection.
func SetAuth ¶
func SetAuth(authType, authValue string)
SetAuth sets the authentication information.
func SetInsecure ¶
func SetInsecure(insecure bool)
SetInsecure configures the API to use insecure connections.
func SetRetryDefaultTimeout ¶
SetRetryDefaultTimeout configures the default timeout before making a retry in a failed request.
func SetRetryEnableMetadata ¶
func SetRetryEnableMetadata(b bool)
SetRetryEnableMetadata configures if the retry procedure will read the request's metadata or not.
Types ¶
This section is empty.
Source Files
¶
- api.go
Click to show internal directories.
Click to hide internal directories.