liuxiaolong
2019-10-31 718bcd41127a8c5c93a20ca6dfce6e5c5fcbc4e1
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,8 @@
   ChannelCount    string `mapstructure: "channelCount"`    //通道个数
   DiskCount       string `mapstructure: "diskCount"`       //硬盘个数
   SysServerPort string `mapstructure: "SysServerPort"`
   SudoPassword  string      `mapstructure: "sudoPassword"`
   SysThresholds []threshold `mapstructure: "sysThresholds"`
}
var Server = &server{}