Versions in this module Expand all Collapse all v1 v1.0.1 Oct 9, 2019 v1.0.0 Sep 25, 2014 Changes in this version + var ErrOverflow = errors.New("Overflow") + var ErrTimeout = errors.New("Timeout") + var ErrUnderflow = errors.New("Underflow") + type DynamicPool struct + func NewDynamicPool(size uint, newFunc func() (interface{}, error), putFunc func(interface{})) *DynamicPool + func (p *DynamicPool) Free() uint + func (p *DynamicPool) Get(timeout time.Duration) (interface{}, error) + func (p *DynamicPool) Put(v interface{}) error + func (p *DynamicPool) Size() uint + type Pool interface + Free func() uint + Get func(timeout time.Duration) (interface{}, error) + Put func(v interface{}) error + Size func() uint + type StaticPool struct + func NewStaticPool(size uint, newFunc func() (interface{}, error), putFunc func(interface{})) *StaticPool + func (p *StaticPool) Free() uint + func (p *StaticPool) Get(timeout time.Duration) (interface{}, error) + func (p *StaticPool) Put(v interface{}) error + func (p *StaticPool) Size() uint