Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + const DefaultExpireInterval + const DefaultExpireStart + const ErrPoolClosed + const MaxFailCount + type Algorithm string + const MinFailCount + type ExpireOptions struct + Interval time.Duration + Start time.Duration + type Info interface + Fail func() + FailCount func() int + ResetCount func() + func NewInfo() Info + type InfoSet map[Info]struct + func (s InfoSet) List() []Info + type Pool struct + func NewPool(infos map[Info]struct{}, opts PoolOptions) (*Pool, error) + func (p *Pool) Choose() (Info, error) + func (p *Pool) Close() + func (p *Pool) Infos() []Info + func (p *Pool) Update(infos map[Info]struct{}) error + type PoolOptions struct + Algorithm Algorithm + AllowEmpty bool + Expire ExpireOptions