Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrClosed is the error resulting if the pool is closed via pool.Close() or pool.Release(). ErrClosed = errors.New("pool is closed") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // init conn size InitialSize int // the max conn size MaxActive int Factory func() (interface{}, error) Close func(interface{}) error // the idle timeout IdleTimetout time.Duration }
Config the connection pool config
Click to show internal directories.
Click to hide internal directories.