Files
query-orchestration/api/queryService/controllers.go
T
Jay Brown 174644b63c Merged in jb/openapi (pull request #22)
add openapi infra

* add openapi infra

Includes generated stubs and all deps

* generatetolocation

* basesetupoffunctionsandclient

* round1controllertests

* passintegrationtests

* cleanupfromfullsuite

* storedjson

* fixjsonyaml

* fixtests


Approved-by: Michael McGuinness
2025-01-15 19:45:51 +00:00

28 lines
552 B
Go

package queryservice
import (
"queryorchestration/internal/collector"
"queryorchestration/internal/export"
"queryorchestration/internal/query"
"github.com/go-playground/validator/v10"
)
type Services struct {
Export *export.Service
JobCollector *collector.Service
Query *query.Service
}
type Controllers struct {
validator *validator.Validate
svc *Services
}
func NewControllers(validator *validator.Validate, services *Services) *Controllers {
return &Controllers{
validator: validator,
svc: services,
}
}