2ff6e05ffc
Permit integration - part 1 * WIP permit integration * slim down build * Merge branch 'main' of bitbucket.org:aarete/query-orchestration into feature/permit-integration-1 * omit swagger from auth * clean build * comment * part 1 completed this is the initial permitio parts and tests without integration. Also testing.md since we have a new test target `task test:permitio` * feature flag for no jwt validation * permit integration * fix ci unit tests * ci fix * build fix * fix home handler * fix redirect * test fix * update docs for auth
43 lines
1.2 KiB
Go
43 lines
1.2 KiB
Go
package queryapi
|
|
|
|
import (
|
|
"queryorchestration/internal/client"
|
|
clientupdate "queryorchestration/internal/client/update"
|
|
"queryorchestration/internal/collector"
|
|
collectorset "queryorchestration/internal/collector/set"
|
|
"queryorchestration/internal/document"
|
|
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
|
|
}
|
|
|
|
type Controllers struct {
|
|
svc *Services
|
|
authConfig auth.ConfigProvider
|
|
}
|
|
|
|
func NewControllers(services *Services, authConfig auth.ConfigProvider) *Controllers {
|
|
return &Controllers{
|
|
svc: services,
|
|
authConfig: authConfig,
|
|
}
|
|
}
|