Files
query-orchestration/api/queryAPI/controllers.go
T
Jay Brown c45e1dd427 Merged in feature/textExtractionsPart1 (pull request #192)
all schema and rest apis for text extraction support

* in progress

* stage 8 complete

* phase 9 completed

* phase 9 complete

* ongoing - s3 path fix

* working

* optimize ci build

* e2e tests

* missing test
2025-11-26 19:23:42 +00:00

60 lines
1.8 KiB
Go

package queryapi
import (
"queryorchestration/internal/backgroundtask"
"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/fieldextraction"
"queryorchestration/internal/folder"
"queryorchestration/internal/label"
"queryorchestration/internal/query"
querytest "queryorchestration/internal/query/test"
queryupdate "queryorchestration/internal/query/update"
"queryorchestration/internal/serviceconfig/auth"
"queryorchestration/internal/serviceconfig/objectstore"
)
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
FieldExtraction *fieldextraction.Service
Folder *folder.Service
Label *label.Service
}
// ConfigProvider combines auth and objectstore interfaces for the Controllers
type ConfigProvider interface {
auth.ConfigProvider
objectstore.ConfigProvider
GetBackgroundRunner() *backgroundtask.Runner
}
type Controllers struct {
svc *Services
cfg ConfigProvider
}
func NewControllers(services *Services, cfg ConfigProvider) *Controllers {
return &Controllers{
svc: services,
cfg: cfg,
}
}