Documentation ¶ Index ¶ func Add(c Conn) func CloseAndDelete(key string) func LoadAllConn() chan Conn type Conn func Get(key string) Conn Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Add ¶ func Add(c Conn) func CloseAndDelete ¶ func CloseAndDelete(key string) func LoadAllConn ¶ func LoadAllConn() chan Conn Types ¶ type Conn ¶ type Conn interface { Key() string // connection unique key in pool Close() error // close the connection Done() <-chan struct{} // check if ctx is canceled Err() error // return error if conn has any internal error } func Get ¶ func Get(key string) Conn Source Files ¶ View all Source files idle.go pool.go Click to show internal directories. Click to hide internal directories.