62886dbba8
Remove Job * removejob * rmjob * sync * cleanup * precommit * startslow * startslow * startslow * openapi * clean * test * scripts * littlecleanercmds * mermaid
27 lines
493 B
Go
27 lines
493 B
Go
package querytest
|
|
|
|
import (
|
|
"queryorchestration/internal/collector"
|
|
"queryorchestration/internal/document"
|
|
"queryorchestration/internal/query/result"
|
|
"queryorchestration/internal/serviceconfig"
|
|
)
|
|
|
|
type Services struct {
|
|
Result *result.Service
|
|
Collector *collector.Service
|
|
Document *document.Service
|
|
}
|
|
|
|
type Service struct {
|
|
cfg serviceconfig.ConfigProvider
|
|
svc *Services
|
|
}
|
|
|
|
func New(cfg serviceconfig.ConfigProvider, svc *Services) *Service {
|
|
return &Service{
|
|
cfg,
|
|
svc,
|
|
}
|
|
}
|