Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBConfig ¶
type DBConfig struct { Host string `default:"127.0.0.1" json:"host"` Database string `required:"true" json:"database"` User string `default:"root" json:"user"` Password string `required:"true" env:"MysqlPassword"` Port uint `default:"3306" json:"port"` }
func LoadMySQLConfig ¶
LoadMySQLConfig returns the mysql connection config
Click to show internal directories.
Click to hide internal directories.