sunty
2020-01-15 49ceaa0374fb3f0d74a4949953b0355359b3bf49
extend/config/config.go
@@ -54,9 +54,16 @@
   Port string `mapstructure:"port"`
}
type elastic struct {
   IndexName string `mapstructure: "indexName"`
   IndexType string `mapstructure: "indexType"`
}
var SoPath = &sopath{}
var EsInfo = &esinfo{}
var BasicFS = &elastic{}
type facedetect struct {
   Ip   string `mapstructure:"Ip"`
@@ -96,4 +103,5 @@
   viper.UnmarshalKey("facedetect", FaceDetectSet)
   viper.UnmarshalKey("dbpersoncompare", DbPersonCompInfo)
   viper.UnmarshalKey("espersoncompare", EsCompServerInfo)
   viper.UnmarshalKey("elastic.basicFS", BasicFS)
}