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) }