Merged in feature/testwithlogs (pull request #65)
Query Version Sync Runner * testing * queryversiosyncworking * update * tests * fixtests
This commit is contained in:
@@ -17,8 +17,10 @@ import (
|
||||
"queryorchestration/internal/query"
|
||||
"queryorchestration/internal/query/result"
|
||||
querytest "queryorchestration/internal/query/test"
|
||||
queryupdate "queryorchestration/internal/query/update"
|
||||
service "queryorchestration/internal/server/service"
|
||||
"queryorchestration/internal/serviceconfig/queue/jobsync"
|
||||
"queryorchestration/internal/serviceconfig/queue/queryversionsync"
|
||||
|
||||
"github.com/getkin/kin-openapi/openapi3"
|
||||
_ "github.com/lib/pq"
|
||||
@@ -27,6 +29,7 @@ import (
|
||||
type QueryServiceConfig struct {
|
||||
service.BaseConfig
|
||||
jobsync.JobSyncConfig
|
||||
queryversionsync.QueryVersionSyncConfig
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -62,15 +65,19 @@ func main() {
|
||||
Result: res,
|
||||
Document: doc,
|
||||
})
|
||||
qupdate := queryupdate.New(cfg, &queryupdate.Services{
|
||||
Query: que,
|
||||
})
|
||||
|
||||
services := &queryservice.Services{
|
||||
Export: exp,
|
||||
Collector: col,
|
||||
CollectorUpdate: colupdate,
|
||||
Query: que,
|
||||
QueryUpdate: qupdate,
|
||||
QueryTest: quetest,
|
||||
Client: cli,
|
||||
Job: jbb,
|
||||
QueryTest: quetest,
|
||||
}
|
||||
|
||||
cons := queryservice.NewControllers(cfg.GetValidator(), services)
|
||||
|
||||
Reference in New Issue
Block a user