Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig()
Types ¶
type Config ¶
type Config struct { Database struct { Host string `yaml:"host"` Port int `yaml:"port"` Name string `yaml:"name"` Username string `yaml:"user" envconfig:"PGS_DB_USER"` Password string `yaml:"pass" envconfig:"PGS_DB_PASS"` SSL bool `yaml:"ssl"` } `yaml:"db"` ApiKeys []string `yaml:"api_keys"` Listen struct { Address string `yaml:"address"` Port string `yaml:"port"` Debug bool `yaml:"debug"` } `yaml:"listen"` }
var Cfg *Config
Click to show internal directories.
Click to hide internal directories.