Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromToml ¶
Types ¶
type Config ¶
type Config struct {
MySQL *MySQL `json:"mysql" toml:"mysql"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type MySQL ¶
type MySQL struct { Host string `json:"host" toml:"host" env:"MYSQL_HOST"` Port int `json:"port" toml:"port" env:"MYSQL_PORT"` DB string `json:"database" toml:"database" env:"MYSQL_DB"` Username string `json:"username" toml:"username" env:"MYSQL_USERNAME"` Password string `json:"password" toml:"password" env:"MYSQL_PASSWORD"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.