Versions in this module Expand all Collapse all v0 v0.0.2 Dec 19, 2025 v0.0.1 Dec 17, 2025 Changes in this version + var ErrPoolClosed = fmt.Errorf("pool has been closed") + var ErrPoolFull = fmt.Errorf("pool is full") + type ClosableClient interface + Close func() error + IsHealthy func(ctx context.Context) bool + type Manager struct + func NewManager() *Manager + func (m *Manager) CloseAll() + func (m *Manager) Deregister(name string) + func (m *Manager) Register(name string, pool any) + type Pool interface + Close func() error + Get func(ctx context.Context) (T, error) + Len func() int + Put func(T) + func Get[T ClosableClient](m *Manager, name string) (Pool[T], bool) + func New[T ClosableClient](factory func(context.Context) (T, error), minSize, maxSize int, ...) (Pool[T], error) + type UntypedPool interface + Len func() int