---
panlei
2019-11-19 7fd22345caf69d77fb691745c46af15f99fef413
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,10 +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()
   //InitInsertEs()
}