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 OptionsFromConfig ¶
func OptionsFromConfig(c config.ConnectionConfig, logger *zap.Logger) ([]grpc.DialOption, error)
OptionsFromConfig - adds tracing, TLS certs and connection limits
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.