Merged in feature/removejob (pull request #95)
Remove Job * removejob * rmjob * sync * cleanup * precommit * startslow * startslow * startslow * openapi * clean * test * scripts * littlecleanercmds * mermaid
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
//
|
||||
// Checks if the document is eligible for syncing.
|
||||
//
|
||||
// By validating: the client can_sync parameter, the job can_sync parameter.
|
||||
// By validating: the client can_sync parameter.
|
||||
//
|
||||
// If eligible, send an event to the DOCCLEAN queue.
|
||||
package main
|
||||
@@ -16,12 +16,11 @@ import (
|
||||
|
||||
docsyncrunner "queryorchestration/api/docSyncRunner"
|
||||
"queryorchestration/internal/client"
|
||||
"queryorchestration/internal/collector"
|
||||
"queryorchestration/internal/document"
|
||||
cleanversion "queryorchestration/internal/document/clean/version"
|
||||
documentsync "queryorchestration/internal/document/sync"
|
||||
textversion "queryorchestration/internal/document/text/version"
|
||||
"queryorchestration/internal/job"
|
||||
"queryorchestration/internal/job/collector"
|
||||
"queryorchestration/internal/server/runner"
|
||||
documentcleanc "queryorchestration/internal/serviceconfig/queue/documentclean"
|
||||
|
||||
@@ -39,21 +38,17 @@ func main() {
|
||||
cfg := &DocSyncConfig{}
|
||||
|
||||
cfg.ControllerFunc = func() runner.Controller {
|
||||
tev := textversion.New(cfg)
|
||||
clv := cleanversion.New(cfg)
|
||||
col := collector.New(cfg, &collector.Services{
|
||||
CleanVersion: clv,
|
||||
TextVersion: tev,
|
||||
coll := collector.New(cfg, &collector.Services{
|
||||
CleanVersion: cleanversion.New(cfg),
|
||||
TextVersion: textversion.New(cfg),
|
||||
})
|
||||
cli := client.New(cfg)
|
||||
jbb := job.New(cfg, &job.Services{
|
||||
Client: cli,
|
||||
Collector: col,
|
||||
cli := client.New(cfg, &client.Services{
|
||||
Collector: coll,
|
||||
})
|
||||
doc := document.New(cfg)
|
||||
docsync := documentsync.New(cfg, &documentsync.Services{
|
||||
Document: doc,
|
||||
Job: jbb,
|
||||
Client: cli,
|
||||
})
|
||||
|
||||
return docsyncrunner.New(cfg.GetValidator(), &docsyncrunner.Services{
|
||||
|
||||
Reference in New Issue
Block a user