Documentation
¶
Index ¶
Constants ¶
View Source
const ( MySQLMaxLifetime = 59 * time.Second MySQLDefaultMaxConn = 100 MySQLDefaultTimeout = 1 MySQLDefaultReadTimeout = 5 MySQLDefaultWriteTimeout = 5 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQLConf ¶
type MySQLConf struct { Host string `toml:"host" yaml:"host"` Port int `toml:"port" yaml:"port"` DB string `toml:"db" yaml:"db"` User string `toml:"user" yaml:"user"` Password string `toml:"password" yaml:"password"` Timeout int `toml:"timeout" yaml:"timeout"` ReadTimeout int `toml:"read_timeout" yaml:"read_timeout"` WriteTimeout int `toml:"write_timeout" yaml:"write_timeout"` MaxConn int `toml:"max_conn" yaml:"max_conn"` }
func (*MySQLConf) GenSession ¶
Click to show internal directories.
Click to hide internal directories.