Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExpvarKeyGets is the key name for the expvar that captures pool // get requests. Pass it to expvar.Get to inspect current statistics. ExpvarKeyGets = "srvproxy_pool_gets" )
Variables ¶
View Source
var ( // ErrNoHosts indicates a pool is empty. ErrNoHosts = errors.New("no hosts available") )
Functions ¶
This section is empty.
Types ¶
type Pool ¶
Pool describes anything which can yield hosts for transactions. Pools don't grant exclusive use of hosts.
func Instrument ¶
Instrument records metrics for operations against the wrapped Pool.
func Report ¶
Report logs JSON-encoded pool operations for the wrapped pool to the passed io.Writer. If w is nil, Report is a no-op.
func RoundRobin ¶
RoundRobin returns a plain round-robining Pool. Close is a no-op.
Click to show internal directories.
Click to hide internal directories.