Documentation ¶
Index ¶
- type Config
- func (config *Config) Build() (*grpc.ClientConn, error)
- func (config *Config) MustBuild() *grpc.ClientConn
- func (config *Config) MustSingleton() *grpc.ClientConn
- func (config *Config) SetAccessInterceptorLevel(AccessInterceptorLevel string) *Config
- func (config *Config) SetAddress(Address string) *Config
- func (config *Config) SetBalancerName(BalancerName string) *Config
- func (config *Config) SetBlock(Block bool) *Config
- func (config *Config) SetDebug(Debug bool) *Config
- func (config *Config) SetDialTimeout(DialTimeout time.Duration) *Config
- func (config *Config) SetDirect(Direct bool) *Config
- func (config *Config) SetDisableAccessInterceptor(DisableAccessInterceptor bool) *Config
- func (config *Config) SetDisableAidInterceptor(DisableAidInterceptor bool) *Config
- func (config *Config) SetDisableMetricInterceptor(DisableMetricInterceptor bool) *Config
- func (config *Config) SetDisableTimeoutInterceptor(DisableTimeoutInterceptor bool) *Config
- func (config *Config) SetDisableTraceInterceptor(DisableTraceInterceptor bool) *Config
- func (config *Config) SetEtcd(option *etcdv3.Config) *Config
- func (config *Config) SetName(Name string) *Config
- func (config *Config) SetReadTimeout(ReadTimeout time.Duration) *Config
- func (config *Config) SetSlowThreshold(SlowThreshold time.Duration) *Config
- func (config *Config) Singleton() (*grpc.ClientConn, error)
- func (config *Config) WithDialOption(opts ...grpc.DialOption) *Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string BalancerName string Address string Block bool DialTimeout time.Duration ReadTimeout time.Duration Direct bool KeepAlive *keepalive.ClientParameters SlowThreshold time.Duration Debug bool DisableTraceInterceptor bool DisableAidInterceptor bool DisableTimeoutInterceptor bool DisableMetricInterceptor bool DisableAccessInterceptor bool AccessInterceptorLevel string Etcd *etcdv3.Config // contains filtered or unexported fields }
Config ...
func (*Config) MustBuild ¶ added in v3.2.29
func (config *Config) MustBuild() *grpc.ClientConn
MustBuild ...
func (*Config) MustSingleton ¶ added in v3.2.29
func (config *Config) MustSingleton() *grpc.ClientConn
MustSingleton panics when error found.
func (*Config) SetAccessInterceptorLevel ¶ added in v3.2.27
SetAccessInterceptorLevel ...
func (*Config) SetAddress ¶ added in v3.2.27
SetAddress ...
func (*Config) SetBalancerName ¶ added in v3.2.27
SetBalancerName ...
func (*Config) SetDialTimeout ¶ added in v3.2.27
SetDialTimeout ...
func (*Config) SetDisableAccessInterceptor ¶ added in v3.2.27
SetDisableAccessInterceptor ...
func (*Config) SetDisableAidInterceptor ¶ added in v3.2.27
SetDisableAidInterceptor ...
func (*Config) SetDisableMetricInterceptor ¶ added in v3.2.27
SetDisableMetricInterceptor ...
func (*Config) SetDisableTimeoutInterceptor ¶ added in v3.2.27
SetDisableTimeoutInterceptor ...
func (*Config) SetDisableTraceInterceptor ¶ added in v3.2.27
SetDisableTraceInterceptor ...
func (*Config) SetReadTimeout ¶ added in v3.2.27
SetReadTimeout ...
func (*Config) SetSlowThreshold ¶ added in v3.2.27
SetSlowThreshold ...
func (*Config) Singleton ¶ added in v3.2.29
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.