| | |
| | | "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"` |
| | |
| | | ChannelCount string `mapstructure: "channelCount"` //通道个数 |
| | | DiskCount string `mapstructure: "diskCount"` //硬盘个数 |
| | | |
| | | SysServerPort string `mapstructure: "SysServerPort"` |
| | | SudoPassword string `mapstructure: "sudoPassword"` //系统密码 |
| | | SysThresholds []threshold `mapstructure: "sysThresholds"` |
| | | PTZSpeed int `mapstructure: "ptzSpeed"` // 云台移动速度 |
| | | } |
| | | |
| | | var Server = &server{} |