Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiPool ¶
type MultiPool struct {
// contains filtered or unexported fields
}
func NewMultiPool ¶
type NodePool ¶
type NodePool struct { DB *sql.DB Addr string `json:"addr,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` DbName string `json:"dbname,omitempty"` DbType string `json:"dbtype,omitempty"` MaxOpenConns int `json:"max_open_conns,omitempty"` MaxIdleConns int `json:"max_idle_conns,omitempty"` ConnTimeout int `json:"conn_timeout,omitempty"` ReadTimeout int `json:"read_timeout,omitempty"` ConnMaxLifetime time.Duration `json:"conn_max_lifetime,omitempty"` ConnMaxIdleTime time.Duration `json:"conn_max_idle_time,omitempty"` }
func (*NodePool) GetConnStr ¶
Click to show internal directories.
Click to hide internal directories.