Documentation
¶
Overview ¶
config/config.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( ProvideDefaultConfig, NewViper, LoadConfig, )
Set provides a Wire provider for the Config struct.
Functions ¶
func LoadConfig ¶
func LoadConfig(v *viper.Viper) (interfaces.Config, error)
LoadConfig unmarshals the configuration from Viper into the Config struct.
Types ¶
type Config ¶
type Config struct {
LoggerConfig logging.LoggingConfig `mapstructure:"logger"`
ServiceConfig service.ServiceConfig `mapstructure:"service"`
}
Config is the configuration for the config package.
func (*Config) GetLoggingConfig ¶
func (c *Config) GetLoggingConfig() interfaces.LoggingConfig
GetLoggerConfig returns the logger configuration.
func (*Config) GetServiceConfig ¶
func (c *Config) GetServiceConfig() interfaces.ServiceConfig
GetServiceConfig returns the service configuration.
type ConfigPath ¶
type ConfigPath string
func ProvideDefaultConfig ¶
func ProvideDefaultConfig() ConfigPath
func (ConfigPath) String ¶
func (c ConfigPath) String() string
Click to show internal directories.
Click to hide internal directories.