Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2014 Changes in this version + var ErrClosed = errors.New("pool is closed") + var ErrFull = errors.New("pool is full") + type ChannelPool struct + func (c *ChannelPool) Cap() int + func (c *ChannelPool) Close() + func (c *ChannelPool) Get() (net.Conn, error) + func (c *ChannelPool) Len() int + func (c *ChannelPool) Put(conn net.Conn) error + type Factory func() (net.Conn, error) + type Pool interface + Cap func() int + Close func() + Get func() (net.Conn, error) + Len func() int + Put func(conn net.Conn) error + func NewChannelPool(initialCap, maxCap int, factory Factory) (Pool, error) Incompatible versions in this module v2.0.0+incompatible Dec 17, 2015