Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LogJsonFormat specify json format LogJsonFormat string = "json" )
View Source
var Set = wire.NewSet( NewConfigurator, NewAppConfig, NewLoggerConfig, NewProfilerConfig, )
Set contains project configs
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Name string `mapstructure:"name"` Mode string `mapstructure:"mode"` HTTPPort string `mapstructure:"http_port"` // contains filtered or unexported fields }
AppConfig holds the main app configurations
func (*AppConfig) IsProduction ¶
IsProduction Check is application running in production mode
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
Configurator dummy
func (*Configurator) Register ¶
func (c *Configurator) Register(name string, fn func())
Register watcher
type LoggerConfig ¶
type LoggerConfig struct { Level string `mapstructure:"level"` Format string `mapstructure:"format"` }
LoggerConfig holds logger configurations
func NewLoggerConfig ¶
func NewLoggerConfig(c *Configurator) *LoggerConfig
NewLoggerConfig create logger config
type ProfilerConfig ¶
type ProfilerConfig struct {
API string `mapstructure:"api"`
}
ProfilerConfig holds profiler configurations
func NewProfilerConfig ¶
func NewProfilerConfig(c *Configurator) *ProfilerConfig
NewProfilerConfig create profiler config
Click to show internal directories.
Click to hide internal directories.