Documentation ¶
Index ¶
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.