Versions in this module Expand all Collapse all v1 v1.3.1 Oct 22, 2022 v1.3.0 Oct 19, 2022 Changes in this version + var ErrClosed = errors.New("pool is closed") + var ErrConfigInvalid = errors.New("config is invalid") + type Pool interface + Close func() + Get func() (net.Conn, error) + Len func() int + func NewHeapPool(config *PoolConfig) (Pool, error) + type PoolConfig struct + Factory func() (net.Conn, error) + Idletime time.Duration + InitialCap int + MaxCap int + MaxIdle int + MaxLifetime time.Duration + type PoolConn struct + func (pc *PoolConn) Close() error + func (pc *PoolConn) IsUnusable() bool + func (pc *PoolConn) MarkUnusable() + type PriorityQueue []*PoolConn + func (pq *PriorityQueue) Pop() interface{} + func (pq *PriorityQueue) Push(x interface{}) + func (pq PriorityQueue) Len() int + func (pq PriorityQueue) Less(i, j int) bool + func (pq PriorityQueue) Swap(i, j int)