|
|
@ -51,11 +51,12 @@ func (the *consumerGDKS) InputInitial() error { |
|
|
HttpClient: &dbOperate.HttpHelper{Url: the.ConfigInfo.IoConfig.In.Http.Url, Token: ""}, |
|
|
HttpClient: &dbOperate.HttpHelper{Url: the.ConfigInfo.IoConfig.In.Http.Url, Token: ""}, |
|
|
MonitorHelper: &monitors.MonitorHelper{CronStr: the.ConfigInfo.IoConfig.In.CronStr}, |
|
|
MonitorHelper: &monitors.MonitorHelper{CronStr: the.ConfigInfo.IoConfig.In.CronStr}, |
|
|
} |
|
|
} |
|
|
|
|
|
the.InHttp.HttpClient.SetAuth(the.ConfigInfo.IoConfig.In.Http.Username, the.ConfigInfo.IoConfig.In.Http.Password) |
|
|
the.InHttp.Start() |
|
|
the.InHttp.Start() |
|
|
the.InHttp.RegisterTask(the.ConfigInfo.IoConfig.In.CronStr, the.getEsData) |
|
|
the.InHttp.RegisterTask(the.ConfigInfo.IoConfig.In.CronStr, the.getEsData) |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (the *consumerGDKS) OutputInitial() error { |
|
|
func (the *consumerGDKS) OutputInitial() error { |
|
|
//数据出口
|
|
|
//数据出口
|
|
|
the.OutFile = &dbOperate.FileSaveHelper{ |
|
|
the.OutFile = &dbOperate.FileSaveHelper{ |
|
|
|