Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCClientConn ¶
func NewGRPCClientConn(ctx context.Context, cfg GRPCClientConnConfig, opts ...GRPCClientConnOption) (*grpc.ClientConn, error)
Types ¶
type GRPCClientConnConfig ¶
type GRPCClientConnConfig struct { Endpoint string `yaml:"endpoint"` UserAgent string `yaml:"user_agent"` MaxRetries int64 `yaml:"max_retries"` TimeoutBetweenRetries time.Duration `yaml:"timeout_between_retries"` InitTimeout time.Duration `yaml:"init_timeout"` EnableCompressor bool `yaml:"enable_compressor"` }
func (*GRPCClientConnConfig) Validate ¶
func (c *GRPCClientConnConfig) Validate() error
type GRPCClientConnOption ¶
type GRPCClientConnOption func(serverOptions *grpcClientConnOptions)
func GRPCWithClientName ¶
func GRPCWithClientName(clientName string) GRPCClientConnOption
func GRPCWithDialOptions ¶
func GRPCWithDialOptions(dialOpts ...grpc.DialOption) GRPCClientConnOption
Click to show internal directories.
Click to hide internal directories.