Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionPool ¶
type ConnectionPool struct {
// contains filtered or unexported fields
}
ConnectionPool implements a generic connection pool
func NewConnectionPool ¶
func NewConnectionPool(opts PoolOptions) *ConnectionPool
NewConnectionPool creates a new connection pool
func (*ConnectionPool) Close ¶
func (p *ConnectionPool) Close() error
Close closes all connections in the pool
func (*ConnectionPool) Get ¶
func (p *ConnectionPool) Get(ctx context.Context) (interface{}, error)
Get retrieves a connection from the pool
func (*ConnectionPool) Put ¶
func (p *ConnectionPool) Put(conn interface{})
Put returns a connection to the pool
Click to show internal directories.
Click to hide internal directories.