Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ConnectionString string `envconfig:"DATABASE_URL" default:"sqlite3://app.db"` LogLevel string `envconfig:"LOG_LEVEL" default:"INFO"` Port string `envconfig:"PORT" default:"8000"` DB *gorm.DB RedisURL string `envconfig:"REDIS_URL"` }
Config wraps up the entire application configuration
func GetGlobalConfig ¶
func GetGlobalConfig() *Config
GetGlobalConfig gets the current config for the app.
Click to show internal directories.
Click to hide internal directories.