Documentation ¶
Overview ¶
Package pool handles the database connection pool.
Index ¶
Constants ¶
View Source
const DefaultLivenessCheckThreshold = math.MaxInt64
DefaultLivenessCheckThreshold disables the liveness check of connections Liveness checks are performed before a connection is deemed idle enough to be reset
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connect ¶
type Connect func(context.Context, string, log.BoltLogger) (db.Connection, error)
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
type PoolClosed ¶
type PoolClosed struct { }
func (*PoolClosed) Error ¶
func (e *PoolClosed) Error() string
type PoolTimeout ¶
type PoolTimeout struct {
// contains filtered or unexported fields
}
func (*PoolTimeout) Error ¶
func (e *PoolTimeout) Error() string
Click to show internal directories.
Click to hide internal directories.