Files
query-orchestration/api/queryAPI/controllers.go
T
2025-08-05 07:03:35 -07:00

45 lines
1.3 KiB
Go

package queryapi
import (
"queryorchestration/internal/client"
clientupdate "queryorchestration/internal/client/update"
"queryorchestration/internal/collector"
collectorset "queryorchestration/internal/collector/set"
"queryorchestration/internal/document"
documentbatch "queryorchestration/internal/document/batch"
documentupload "queryorchestration/internal/document/upload"
"queryorchestration/internal/export"
"queryorchestration/internal/query"
querytest "queryorchestration/internal/query/test"
queryupdate "queryorchestration/internal/query/update"
"queryorchestration/internal/serviceconfig/auth"
)
const Name = "queryAPI"
type Services struct {
Export *export.Service
Collector *collector.Service
CollectorSet *collectorset.Service
Query *query.Service
QueryUpdate *queryupdate.Service
QueryTest *querytest.Service
Client *client.Service
ClientUpdate *clientupdate.Service
Document *document.Service
DocumentUpload *documentupload.Service
DocumentBatch *documentbatch.Service
}
type Controllers struct {
svc *Services
authConfig auth.ConfigProvider
}
func NewControllers(services *Services, authConfig auth.ConfigProvider) *Controllers {
return &Controllers{
svc: services,
authConfig: authConfig,
}
}