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"` @@ -59,4 +56,5 @@ viper.UnmarshalKey("es", EsInfo) viper.UnmarshalKey("weedfs", WeedFs) viper.UnmarshalKey("sopath",SoPath) //InitInsertEs() }