Documentation
¶
Index ¶
- type APIPConfigProvider
- type Config
- func (c *Config) DebugEnabled() bool
- func (c *Config) GetAPIAddress() string
- func (c Config) GetDBDSN() string
- func (c Config) GetDBMaxIdleCons() int
- func (c Config) GetDBMaxOpenCons() int
- func (c Config) GetDBMigrations() string
- func (c *Config) GetEnvName() Env
- func (c *Config) GetLogHttpRequests() bool
- func (c *Config) GetLoggerFormat() string
- func (c *Config) GetLoggerLevel() string
- func (c *Config) OverrideAPIConfig()
- func (c *Config) OverrideDBConfig()
- type DBConfigProvider
- type Env
- type GeneralConfigProvider
- type LoggerConfigProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIPConfigProvider ¶
type Config ¶
type Config struct { EnvName Env `yaml:"envName"` Debug bool `yaml:"debug"` Logger logger `yaml:"logger"` API api `yaml:"api"` DB db `yaml:"db"` // contains filtered or unexported fields }
func New ¶
func New(arguments argumentsresolver.ArgumentsInterface) (c *Config, err error)
func (*Config) DebugEnabled ¶
func (*Config) GetAPIAddress ¶
func (Config) GetDBMaxIdleCons ¶
func (Config) GetDBMaxOpenCons ¶
func (Config) GetDBMigrations ¶
func (*Config) GetEnvName ¶
func (*Config) GetLogHttpRequests ¶
func (*Config) GetLoggerFormat ¶
func (*Config) GetLoggerLevel ¶
func (*Config) OverrideAPIConfig ¶
func (c *Config) OverrideAPIConfig()
func (*Config) OverrideDBConfig ¶
func (c *Config) OverrideDBConfig()
type DBConfigProvider ¶
type GeneralConfigProvider ¶
type LoggerConfigProvider ¶
Click to show internal directories.
Click to hide internal directories.