Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool // 是否开启调试模式 Block bool // 等待连接启动再返回 ReadTimeout time.Duration // 调用超时时间 DialTimeout time.Duration // 调用超时时间 SlowThreshold time.Duration // 超时阈值 Balancer string // 负载均衡策略 Secure bool // 安全链接 KeepAlive *keepalive.ClientParameters // 存活策略 // contains filtered or unexported fields }
func (*Config) WithLogger ¶
WithLogger 设置日志组件
Click to show internal directories.
Click to hide internal directories.