Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string // config's name BalancerName string Address string Block bool DialTimeout time.Duration ReadTimeout time.Duration Direct bool OnDialError string // panic | error KeepAlive *keepalive.ClientParameters SlowThreshold time.Duration Debug bool DisableTraceInterceptor bool DisableAidInterceptor bool DisableTimeoutInterceptor bool DisableMetricInterceptor bool DisableAccessInterceptor bool AccessInterceptorLevel string // contains filtered or unexported fields }
Config ...
func (*Config) MustSingleton ¶ added in v0.6.1
func (config *Config) MustSingleton() *grpc.ClientConn
MustSingleton panics when error found.
func (*Config) Singleton ¶ added in v0.6.1
func (config *Config) Singleton() (*grpc.ClientConn, error)
Singleton returns a singleton client conn.
func (*Config) WithDialOption ¶
func (config *Config) WithDialOption(opts ...grpc.DialOption) *Config
WithDialOption ...
Click to show internal directories.
Click to hide internal directories.