panlei
2019-12-05 4452794b46d66af2f83878855af7571857d946fa
insertdata/config.go
@@ -25,10 +25,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"`
@@ -54,9 +51,10 @@
   viper.AddConfigPath("")
   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("weedfs", WeedFs)
   viper.UnmarshalKey("sopath",SoPath)
   //InitInsertEs()
}