Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnPool ¶
type ConnPool struct { // 创建连接对象的函数 Dial func() (Conn, error) // 测试空闲连接对象健康情况 TestOnBorrow func(c Conn, t time.Time) error MaxActive int // 允许最大连接数 MaxIdle int // 允许最大空闲连接数 IdleTimeout time.Duration // 空闲连接存活时间 Wait bool // contains filtered or unexported fields }
func (*ConnPool) ActiveCount ¶
Click to show internal directories.
Click to hide internal directories.