Documentation
¶
Overview ¶
Package config loads and validates application configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
Name string `json:"name" mapstructure:"name" yaml:"name"`
Env string `json:"env" mapstructure:"env" yaml:"env"`
}
AppConfig contains application identity and environment settings.
type Config ¶
type Config struct {
App AppConfig `json:"app" mapstructure:"app" yaml:"app"`
Logging LoggingConfig `json:"logging" mapstructure:"logging" yaml:"logging"`
}
Config is the fully resolved application configuration.
type LoggingConfig ¶
type LoggingConfig struct {
Level string `json:"level" mapstructure:"level" yaml:"level"`
Format string `json:"format" mapstructure:"format" yaml:"format"`
}
LoggingConfig contains runtime logging settings.
Click to show internal directories.
Click to hide internal directories.