Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Config ¶
type Config struct { DBHost string `mapstructure:"POSTGRES_HOST"` DBUserName string `mapstructure:"POSTGRES_USER"` DBUserPassword string `mapstructure:"POSTGRES_PASSWORD"` DBName string `mapstructure:"POSTGRES_DB"` DBPort string `mapstructure:"POSTGRES_PORT"` ServerPort string `mapstructure:"PORT"` ClientOrigin string `mapstructure:"CLIENT_ORIGIN"` Version string `mapstructure:"VERSION"` City string `mapstructure:"CITY_NAME"` OpenWeatherApiKey string `mapstructure:"OPEN_WEATHER_API_KEY"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.