Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnPool ¶
type ConnPool struct { MinIdle int MaxIdle int MaxActive int Wait bool IdleTimeout time.Duration MaxConnLifetime time.Duration // contains filtered or unexported fields }
func (*ConnPool) CheckAlive ¶
CheckAlive default checkfunc to test whether a connection is alive or not
type Option ¶
type Option func(*Options)
func WithDialTimeout ¶
func WithIdleTimeout ¶
func WithMaxActive ¶
func WithMaxConnLifetime ¶
func WithMaxIdle ¶
type PoolFactory ¶
func NewConnPoolFactory ¶
func NewConnPoolFactory(opt ...Option) PoolFactory
create a new poolfactory manager
Click to show internal directories.
Click to hide internal directories.