Merged in feature/jobcollector (pull request #30)
Initial Job Collector (changes pending) * movearroundtocleancollector * internalgetfunctions * completecollectorquery * simplify * fixtests * addvendor * noplaceholder
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user