From 87051e0ff26fbb47b4aa828b22dcfd6a628a47d0 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 26 十二月 2019 11:17:49 +0800
Subject: [PATCH] update capture lib
---
extend/config/config.go | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/extend/config/config.go b/extend/config/config.go
index 605482a..32e4f13 100644
--- a/extend/config/config.go
+++ b/extend/config/config.go
@@ -26,8 +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{}
@@ -39,10 +40,7 @@
}
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"`
@@ -88,7 +86,7 @@
viper.AddConfigPath("/opt/vasystem/config/")
err = viper.ReadInConfig()
if err != nil {
- log.Fatal("error on parsing configuration file")
+ log.Fatal("error on parsing configuration file",err)
}
viper.UnmarshalKey("es", EsInfo)
viper.UnmarshalKey("server", Server)
--
Gitblit v1.8.0