Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugYamlConfig ¶
func DebugYamlConfig()
utility for printing on console during development the yaml config file loaded into the app
func ParseYamlConfigFile ¶
func ParseYamlConfigFile()
Types ¶
type YamlConfig ¶
type YamlConfig struct { Environment string `yaml:"environment"` Key string `yaml:"key"` AppName string `yaml:"application_name"` Port int `yaml:"port"` Database *struct { Postgres *struct { Name string `yaml:"name"` User string `yaml:"user"` Password string `yaml:"password"` Schema string `yaml:"schema"` MinimumConnection int `yaml:"min_connection"` MaximumConnection int `yaml:"max_connection"` SslMode string `yaml:"ssl_mode"` TimeZone string `yaml:"timezone"` } MySql *struct { Name string `yaml:"name"` User string `yaml:"user"` Password string `yaml:"password"` MinimumConnection int `yaml:"min_connection"` MaximumConnection int `yaml:"max_connection"` SslMode string `yaml:"ssl_mode"` TimeZone string `yaml:"timezone"` } } Kafka *struct { Brokers []string `yaml:"brokers"` } RabbitMQ *struct { } }
var Config YamlConfig
global app config wrapper
Click to show internal directories.
Click to hide internal directories.