Merged in feature/jobsync (pull request #63)
Document Sync and Job Sync * docsyncfunc * startedQueryWork * morefixes * jobsyncsvcstart * save * jobsynctext * save * save * docsync * shorttest * jobsync * jobsyncupdateoncollectorupdate * passlivetest * collectortest * lint
This commit is contained in:
@@ -5,20 +5,16 @@ import (
|
||||
"log/slog"
|
||||
"os"
|
||||
docinitrunner "queryorchestration/api/docInitRunner"
|
||||
"queryorchestration/internal/client"
|
||||
"queryorchestration/internal/document"
|
||||
documentinit "queryorchestration/internal/document/init"
|
||||
"queryorchestration/internal/job"
|
||||
"queryorchestration/internal/job/collector"
|
||||
"queryorchestration/internal/server/runner"
|
||||
documentcleanc "queryorchestration/internal/serviceconfig/queue/documentclean"
|
||||
documentsyncc "queryorchestration/internal/serviceconfig/queue/documentsync"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
|
||||
type DocInitConfig struct {
|
||||
runner.BaseConfig
|
||||
documentcleanc.DocCleanConfig
|
||||
documentsyncc.DocSyncConfig
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -27,18 +23,7 @@ func main() {
|
||||
cfg := &DocInitConfig{}
|
||||
|
||||
cfg.ControllerFunc = func() runner.Controller {
|
||||
cli := client.New(cfg)
|
||||
doc := document.New(cfg)
|
||||
col := collector.New(cfg, &collector.Services{
|
||||
Document: doc,
|
||||
})
|
||||
j := job.New(cfg, &job.Services{
|
||||
Collector: col,
|
||||
Client: cli,
|
||||
})
|
||||
docinit := documentinit.New(cfg, &documentinit.Services{
|
||||
Job: j,
|
||||
})
|
||||
docinit := documentinit.New(cfg)
|
||||
|
||||
return docinitrunner.New(cfg.GetValidator(), &docinitrunner.Services{
|
||||
Document: docinit,
|
||||
|
||||
Reference in New Issue
Block a user