Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Masters []DSN `yaml:"masters" json:"masters"` Slaves []DSN `yaml:"slaves" json:"slaves"` MaxOpenConns int `yaml:"max_open_conns" json:"max_open_conns"` MaxIdleConns int `yaml:"max_idle_conns" json:"max_idle_conns"` ConnMaxLifetime time.Duration `yaml:"conn_max_lifetime" json:"conn_max_lifetime"` }
Config for SQL DB.
Click to show internal directories.
Click to hide internal directories.