Versions in this module Expand all Collapse all v1 v1.2.0 Feb 7, 2023 v1.1.1 Feb 7, 2023 Changes in this version + var ErrClosed = errors.New("pool is closed") + var ErrMaxActiveConnReached = errors.New("MaxActiveConnReached") + type Config struct + Close func(interface{}) error + Factory func() (interface{}, error) + IdleTimeout time.Duration + InitialCap int + MaxCap int + MaxIdle int + Ping func(interface{}) error + type Pool interface + Close func(interface{}) error + Get func() (interface{}, error) + Len func() int + Put func(interface{}) error + Release func() + func NewChannelPool(poolConfig *Config) (Pool, error)