Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TraceUnaryClientInterceptor ¶ added in v0.6.6
func TraceUnaryClientInterceptor() grpc.UnaryClientInterceptor
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 RegistryConfig string 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.