sunty
2019-11-01 712ef81c6b8813a498a66cf61ffcd37e5c502c8c
extend/config/config.go
@@ -6,6 +6,10 @@
   "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"`
@@ -22,7 +26,9 @@
   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{}