Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultGRPCRetryConfig = &config.GRPCRetryConfig{ Max: 10, Timeout: config.Duration{Duration: 10 * time.Second}, } DefaultGRPCKeepAliveConfig = &config.GRPCKeepAliveConfig{ Time: 60, Timeout: 5, } )
Functions ¶
func ConnectionFromConfigs ¶
func ConnectionFromConfigs(ctx context.Context, logger *zap.Logger, conf ...config.ConnectionConfig) (*grpc.ClientConn, error)
ConnectionFromConfigs - initializes grpc connection with pool of addresses with round-robin client balancer
func TLSCertHash ¶ added in v0.8.0
Types ¶
type Opts ¶ added in v0.8.0
type Opts struct { TLSCertHash []byte Dial []grpc.DialOption }
func OptionsFromConfig ¶
OptionsFromConfig - adds tracing, TLS certs and connection limits
Click to show internal directories.
Click to hide internal directories.