Merged in feature/jobcollector (pull request #30)

Initial Job Collector (changes pending)

* movearroundtocleancollector

* internalgetfunctions

* completecollectorquery

* simplify

* fixtests

* addvendor

* noplaceholder
This commit is contained in:
Michael McGuinness
2025-01-21 12:28:46 +00:00
parent b888e3450f
commit 4ccb980593
46 changed files with 951 additions and 655 deletions
+6 -1
View File
@@ -3,6 +3,7 @@ package main
import (
"context"
controllers "queryorchestration/api/queryRunner"
"queryorchestration/internal/job/collector"
"queryorchestration/internal/query/document"
"queryorchestration/internal/server"
"queryorchestration/internal/server/queue"
@@ -14,7 +15,11 @@ func main() {
ctx := context.Background()
queryrunner := func(cfg *server.Config) queue.Controller {
svc := document.New(cfg.Database)
coll := collector.New(cfg.Database)
svc := document.New(cfg.Database, &document.Services{
Collector: coll,
})
return controllers.NewQueryRunner(svc, cfg.Validator)
}