Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func NewClientConn(ctx context.Context, plugins ...Plugin) *grpc.ClientConn
- func NewClientConnWithConfigPath(ctx context.Context, path string) (*grpc.ClientConn, error)
- func NewClientConnWithOptions(ctx context.Context, options *Options, plugins ...Plugin) *grpc.ClientConn
- type Options
- type Plugin
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
func NewClientConn ¶
func NewClientConn(ctx context.Context, plugins ...Plugin) *grpc.ClientConn
Types ¶
type Options ¶
type Options struct { TLS struct { Enabled bool CertFile string KeyFile string CAFile string `config:"caFile"` InsecureSkipVerify bool } `config:"tls"` InitialWindowSize int32 InitialConnWindowSize int32 Host string Block bool HostOverwrite string Port int Keepalive struct { Time time.Duration Timeout time.Duration PermitWithoutStream bool } ConnectParams struct { Backoff struct { BaseDelay time.Duration Multiplier float64 Jitter float64 MaxDelay time.Duration } MinConnectTimeout time.Duration } }
func NewOptions ¶
func NewOptionsWithPath ¶
type Plugin ¶
type Plugin func(ctx context.Context) ([]grpc.DialOption, []grpc.CallOption)
Click to show internal directories.
Click to hide internal directories.