123456789101112131415161718192021222324252627282930313233343536 |
- package main
- type ConfigYAML struct {
- Frontend FrontendYAML `yaml:"frontend"`
- Backend BackendYAML `yaml:"backend"`
- }
- type FrontendYAML struct {
- Enable bool `yaml:"enable"`
- EntryPoint string `yaml:"entry"`
- ListenAddr string `yaml:"listen"`
- WWWRoot string `yaml:"wwwroot"`
- BackendProxy BackendProxyYAML `yaml:"backend_proxy"`
- ShellLog LumberjackLoggerYAML `yaml:"shell_log"`
- }
- type BackendYAML struct {
- Enable bool `yaml:"enable"`
- EntryPoint string `yaml:"entry"`
- ListenAddr string `yaml:"listen"`
- ShellLog LumberjackLoggerYAML `yaml:"shell_log"`
- }
- type BackendProxyYAML struct {
- Prefix string `yaml:"prefix"`
- ProxyTaret string `yaml:"target"`
- }
- type LumberjackLoggerYAML struct {
- FileName string `yaml:"file"`
- MaxSize int `yaml:"max_size"`
- MaxAge int `yaml:"max_age"`
- MaxBackups int `yaml:"max_backups"`
- UseLocalTime bool `yaml:"use_local_time"`
- Compress bool `yaml:"compress_history"`
- }
|