Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
type MySQL struct { Host string `toml:"host" env:"MYSQL_HOST"` Port string `toml:"port" env:"MYSQL_PORT"` UserName string `toml:"username" env:"MYSQL_USERNAME"` Password string `toml:"password" env:"MYSQL_PASSWORD"` Database string `toml:"database" env:"MYSQL_DATABASE"` MaxOpenConn int `toml:"max_open_conn" env:"MYSQL_MAX_OPEN_CONN"` MaxIdleConn int `toml:"max_idle_conn" env:"MYSQL_MAX_IDLE_CONN"` MaxLifeTime int `toml:"max_life_time" env:"MYSQL_MAX_LIFE_TIME"` MaxIdleTime int `toml:"max_idle_time" env:"MYSQL_MAX_idle_TIME"` // contains filtered or unexported fields }
func NewDefaultMySQL ¶
func NewDefaultMySQL() *MySQL
Click to show internal directories.
Click to hide internal directories.