Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
ServerCfg ServerConfig `json:"server"`
Logging LoggingConfig `json:"logging"`
}
type AppenderConfig ¶ added in v0.1.3
type AppenderConfig struct {
Type AppenderType `json:"type"`
Enabled bool `json:"enabled"`
Level string `json:"level"`
Destination *DestinationConfig `json:"destination"`
}
type AppenderType ¶ added in v0.1.3
type AppenderType string
const ( RollingFile AppenderType = "rolling_file" Console = "console" )
type DestinationConfig ¶ added in v0.1.3
type LoggingConfig ¶ added in v0.1.3
type LoggingConfig struct {
Level string `json:"level"`
Appenders []AppenderConfig `json:"appenders"`
ConsoleOutHTTP bool `json:"http_console_out"`
LogHTTP bool `json:"http_log"`
}
type SecurityConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Schema Schema `json:"schema" example:"http or https"`
Address string `json:"address" example:"127.0.0.1 or mydomain.com"`
Port int `json:"port" example:"8080"`
Security SecurityConfig `json:"security"`
}
Click to show internal directories.
Click to hide internal directories.