batch upload impl
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
querytest "queryorchestration/internal/query/test"
|
||||
queryupdate "queryorchestration/internal/query/update"
|
||||
"queryorchestration/internal/serviceconfig/auth"
|
||||
"queryorchestration/internal/serviceconfig/objectstore"
|
||||
)
|
||||
|
||||
const Name = "queryAPI"
|
||||
@@ -31,14 +32,20 @@ type Services struct {
|
||||
DocumentBatch *documentbatch.Service
|
||||
}
|
||||
|
||||
type Controllers struct {
|
||||
svc *Services
|
||||
authConfig auth.ConfigProvider
|
||||
// ConfigProvider combines auth and objectstore interfaces for the Controllers
|
||||
type ConfigProvider interface {
|
||||
auth.ConfigProvider
|
||||
objectstore.ConfigProvider
|
||||
}
|
||||
|
||||
func NewControllers(services *Services, authConfig auth.ConfigProvider) *Controllers {
|
||||
type Controllers struct {
|
||||
svc *Services
|
||||
cfg ConfigProvider
|
||||
}
|
||||
|
||||
func NewControllers(services *Services, cfg ConfigProvider) *Controllers {
|
||||
return &Controllers{
|
||||
svc: services,
|
||||
authConfig: authConfig,
|
||||
svc: services,
|
||||
cfg: cfg,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user