Versions in this module Expand all Collapse all v0 v0.0.7 Aug 30, 2022 Changes in this version + func GetConnection(server Server) (*net.Conn, interface{}, error) + func InitServerSettings(server Server, maxConn uint, connMaxIdleTime time.Duration) + func NewPool(size uint, connFactory *ConnectionFactory) *pool + func ReturnConnection(server Server, conn *net.Conn, attr interface{}, broken bool) + func SetDefaultMaxConnIdleTime(connMaxIdleTime time.Duration) + func SetDefaultMaxConnSize(maxConn uint) + type ConnectionFactory struct + ConnMaxIdleTime time.Duration + DialogTimeout time.Duration + Server Server + type PlainServer struct + Host string + Port uint16 + func (ps *PlainServer) ConnectionString() string + func (ps *PlainServer) GetHost() string + func (ps *PlainServer) GetPort() uint16 + type Server interface + ConnectionString func() string + GetHost func() string + GetPort func() uint16