Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DBHost string `mapstructure:"DB_HOST"`
DBPort int `mapstructure:"DB_PORT"`
DBUser string `mapstructure:"DB_USER"`
DBPassword string `mapstructure:"DB_PASSWORD"`
DBName string `mapstructure:"DB_NAME"`
DBSSLMode string `mapstructure:"DB_SSL_MODE"`
DBAutoMigrate bool `mapstructure:"DB_AUTO_MIGRATE"`
RedisAddress string `mapstructure:"REDIS_ADDRESS"`
RedisPassword string `mapstructure:"REDIS_PASSWORD"`
RedisDB int `mapstructure:"REDIS_DB"`
WeatherAPIKey string `mapstructure:"WEATHER_API_KEY"`
SMTPHost string `mapstructure:"SMTP_HOST"`
SMTPPort int `mapstructure:"SMTP_PORT"`
SMTPUsername string `mapstructure:"SMTP_USERNAME"`
SMTPPassword string `mapstructure:"SMTP_PASSWORD"`
SMTPFrom string `mapstructure:"SMTP_FROM"`
BaseURL string `mapstructure:"BASE_URL"`
SwaggerURL string `mapstructure:"SWAGGER_URL"`
AppHost string `mapstructure:"APP_HOST"`
AppPort int `mapstructure:"APP_PORT"`
}
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.