Documentation ¶ Index ¶ type AppConfig type Config func Load(path string) (*Config, error) type DatabaseConfig type HTTPConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type AppConfig ¶ type AppConfig struct { Environment string `mapstructure:"environment"` } type Config ¶ type Config struct { Database DatabaseConfig `mapstructure:"database"` HTTP HTTPConfig `mapstructure:"http"` App AppConfig `mapstructure:"app"` } func Load ¶ func Load(path string) (*Config, error) type DatabaseConfig ¶ type DatabaseConfig struct { User string `mapstructure:"user"` Password string `mapstructure:"password"` Host string `mapstructure:"host"` Port string `mapstructure:"port"` Name string `mapstructure:"name"` Pool poolConfig `mapstructure:"pool"` } type HTTPConfig ¶ type HTTPConfig struct { Host string `mapstructure:"host"` Port string `mapstructure:"port"` TLSEnabled bool `mapstructure:"tls_enabled"` } Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.