Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDb = errors.New("no db")
Functions ¶
Types ¶
type Config ¶
type Config struct { Addr string `toml:"addr" json:"addr"` User string `toml:"user" json:"user"` Pwd string `toml:"pwd" json:"pwd"` Db string `toml:"db" json:"db"` Options string `toml:"options" json:"options"` MaxOpenConns int `toml:"max_open_conns" json:"max_open_conns"` MaxIdleConns int `toml:"max_idle_conns" json:"max_idle_conns"` MaxConnLifeTime int `toml:"max_conn_life_time" json:"max_conn_life_time"` }
Click to show internal directories.
Click to hide internal directories.