Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromEnv ¶
func LoadConfigFromEnv() error
func LoadConfigFromToml ¶
Types ¶
type App ¶
type App struct { HttpHost string `json:"http_host" env:"HTTP_HOST"` HttpPort int64 `json:"http_port" env:"HTTP_PORT"` }
func (*App) HttpAddress ¶
type Config ¶
func ConfigFromEnv ¶
func ConfigFromEnv() *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.