Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load reads in a file at the specified path and unmarshals the values into your config struct.
func LoadFromEnv ¶
Load from env names given in keys
Types ¶
type DBConfig ¶
type DBConfig struct { DBHost string `mapstructure:"DB_HOST"` DBPort uint `mapstructure:"DB_PORT"` DBUser string `mapstructure:"DB_USER"` DBPass string `mapstructure:"DB_PASS"` DBName string `mapstructure:"DB_NAME"` DBSSLMode string `mapstructure:"DB_SSL_MODE"` DBPoolMaxConns int `mapstructure:"DB_POOL_MAX_CONNS"` DBPoolMinConns int `mapstructure:"DB_POOL_MIN_CONNS"` }
func ReadDBConfig ¶
Click to show internal directories.
Click to hide internal directories.