Documentation ¶
Index ¶
Constants ¶
View Source
const ( ALLINDEX = 0 INCRINDEX = 1 )
Variables ¶
View Source
var ( // 连接池 node_address -> connection_pool IndexConnPools *ConnPools = &ConnPools{M: make(map[string]*pool.ConnPool)} Config RpcClientSection )
Functions ¶
func Init ¶
func Init(cfg RpcClientSection, indexs []string)
func ReNewPools ¶
Types ¶
type ConnPools ¶
type ConnPools struct { sync.RWMutex M map[string]*pool.ConnPool MaxConns int MaxIdle int ConnTimeout int CallTimeout int }
每个后端backend对应一个ConnPool
func CreateConnPools ¶
func (*ConnPools) UpdatePools ¶
Click to show internal directories.
Click to hide internal directories.