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" "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 } // ConfigProvider combines auth and objectstore interfaces for the Controllers type ConfigProvider interface { auth.ConfigProvider objectstore.ConfigProvider } type Controllers struct { svc *Services cfg ConfigProvider } func NewControllers(services *Services, cfg ConfigProvider) *Controllers { return &Controllers{ svc: services, cfg: cfg, } }