Documentation ¶
Index ¶
Constants ¶
View Source
const ( ALLINDEX = 0 INCRINDEX = 1 )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(cfg RpcClientSection, indexes []string)
func ReNewPools ¶
Types ¶
type RpcClientSection ¶
type RpcClientSection struct { MaxConns int `yaml:"maxConns"` MaxIdle int `yaml:"maxIdle"` ConnTimeout int `yaml:"connTimeout"` CallTimeout int `yaml:"callTimeout"` }
var ( // 连接池 node_address -> connection_pool IndexConnPools *pools.ConnPools Config RpcClientSection )
Click to show internal directories.
Click to hide internal directories.