| | |
| | | "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{} |
| | |
| | | } |
| | | |
| | | type esindexlist struct { |
| | | VideoPersons index `mapstructure:"videopersons"` |
| | | DbTables index `mapstructure:"dbtables"` |
| | | Dbtablepersons index `mapstructure:"dbtablepersons"` |
| | | Personaction index `mapstructure:"personaction"` |
| | | AiOcean index `mapstructure:"aiOcean"` |
| | | } |
| | | type index struct { |
| | | IndexName string `mapstructure:"index"` |