Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server struct { Port int `yaml:"port"` } `yaml:"server"` Redis struct { Host string `yaml:"host"` Port int `yaml:"port"` Password string `yaml:"password"` } `yaml:"redis"` MySQL struct { Host string `yaml:"host"` Port int `yaml:"port"` User string `yaml:"user"` Password string `yaml:"password"` Database string `yaml:"database"` } `yaml:"mysql"` }
func LoadConfig ¶
LoadConfig reads config.yml and overwrites it with environment variables if available
Click to show internal directories.
Click to hide internal directories.