| | |
| | | package config |
| | | |
| | | import ( |
| | | "github.com/spf13/viper" |
| | | "log" |
| | | |
| | | "github.com/spf13/viper" |
| | | ) |
| | | |
| | | type threshold struct { |
| | | Value int `mapstructure: "value"` |
| | | Color string `mapstructure: "color"` |
| | | } |
| | | type server struct { |
| | | Runmode string `mapstructure: "runmode"` |
| | | JwtSecret string `mapstructure: "jwtSecret"` |
| | |
| | | WebVersion string `mapstructure: "webVersion"` //web版本 |
| | | ChannelCount string `mapstructure: "channelCount"` //通道个数 |
| | | DiskCount string `mapstructure: "diskCount"` //硬盘个数 |
| | | |
| | | SudoPassword string `mapstructure: "sudoPassword"` |
| | | SysThresholds []threshold `mapstructure: "sysThresholds"` |
| | | } |
| | | |
| | | var Server = &server{} |