---
panlei
2019-11-21 63394e220d61b67f86b6c9c0fe1405af80eaafb4
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,7 +51,7 @@
   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)