Versions in this module Expand all Collapse all v1 v1.0.2 Sep 22, 2019 Changes in this version type Config + Ping func(interface{}) bool v1.0.1 Sep 19, 2019 Changes in this version + var ErrClosed = errors.New("pool is closed") + type Config struct + Close func(interface{}) error + Factory func() (interface{}, error) + InitialCap int + MaxCap int + MinCap int + Test func(interface{}) bool + Timeout time.Duration + type ConnPool struct + func (cp *ConnPool) Close(conn interface{}) error + func (cp *ConnPool) Get() (interface{}, error) + func (cp *ConnPool) Len() int + func (cp *ConnPool) Put(conn interface{}) error + func (cp *ConnPool) Release() error + type Pool interface + Close func(conn interface{}) error + Get func() (interface{}, error) + Len func() int + Put func(conn interface{}) error + Release func() error + func InitPool(config *Config) (Pool, error)