Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Log logger.LogConf `yaml:"log" mapstructure:"log"` HTTPAddr string `yaml:"http_listen" mapstructure:"http_listen"` Host string `yaml:"host" mapstructure:"http_host"` Port string `yaml:"port" mapstructure:"http_port"` IsPrettyJSON bool `yaml:"isPrettyJSON" mapstructure:"isPrettyJSON"` DB DBConf `yaml:"db" mapstructure:"db"` }
Config Структура файла с конфигурацией
func LoadConfig ¶
LoadConfig Загрузка конфигурации из файла
type DBConf ¶
type DBConf struct { Name string `yaml:"name" mapstructure:"name"` Host string `yaml:"host" mapstructure:"host"` Port string `yaml:"port" mapstructure:"port"` User string `yaml:"user" mapstructure:"user"` Password string `yaml:"password" mapstructure:"password"` Database string `yaml:"database" mapstructure:"database"` SSL string `yaml:"ssl" mapstructure:"ssl"` }
DBConf .
Click to show internal directories.
Click to hide internal directories.