Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromEnv ¶
LoadFromEnv read config from environment variables
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"` }
Click to show internal directories.
Click to hide internal directories.