Merged in feature/document (pull request #36)
Document CRUD * doccreate * dochashlocandget * depsandtodo
This commit is contained in:
@@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"context"
|
||||
controllers "queryorchestration/api/queryRunner"
|
||||
documentsync "queryorchestration/internal/document/sync"
|
||||
"queryorchestration/internal/job/collector"
|
||||
"queryorchestration/internal/query"
|
||||
"queryorchestration/internal/query/document"
|
||||
"queryorchestration/internal/server"
|
||||
"queryorchestration/internal/server/queue"
|
||||
|
||||
@@ -20,12 +20,13 @@ func main() {
|
||||
coll := collector.New(cfg.Database, &collector.Services{
|
||||
Query: que,
|
||||
})
|
||||
|
||||
svc := document.New(cfg.Database, &document.Services{
|
||||
svc := documentsync.New(cfg.Database, &documentsync.Services{
|
||||
Collector: coll,
|
||||
})
|
||||
|
||||
return controllers.NewQueryRunner(svc, cfg.Validator)
|
||||
return controllers.NewQueryRunner(cfg.Validator, &controllers.Services{
|
||||
DocumentSync: svc,
|
||||
})
|
||||
}
|
||||
|
||||
server := queue.NewServer(ctx, &queue.ListenerConfig{
|
||||
|
||||
Reference in New Issue
Block a user