Versions in this module Expand all Collapse all v1 v1.0.1 Mar 16, 2023 Changes in this version + var ErrGetOnClosedEndpoint = errors.New("endpoint closed") + var ErrNoEndpoints = errors.New("endpoints: no endpoints configured or available") + type Conn struct + Conn io.Closer + Data interface{} + Endpoint string + func (c *Conn) Close() error + func (c *Conn) Release() error + type Pooler interface + IdleTimeout func() time.Duration + MaxActivePerHost func() int + MaxIdlePerHost func() int + OpenConn func(host string) (io.Closer, error) + type Set struct + Pooler Pooler + func NewSet(pooler Pooler) *Set + func (s *Set) Close() error + func (s *Set) GetConn() (*Conn, error) + func (s *Set) SetEndpoints(hosts []string) (added, removed int)