62886dbba8
Remove Job * removejob * rmjob * sync * cleanup * precommit * startslow * startslow * startslow * openapi * clean * test * scripts * littlecleanercmds * mermaid
31 lines
549 B
Go
31 lines
549 B
Go
package documentsync
|
|
|
|
import (
|
|
"queryorchestration/internal/client"
|
|
"queryorchestration/internal/document"
|
|
"queryorchestration/internal/serviceconfig"
|
|
"queryorchestration/internal/serviceconfig/queue/documentclean"
|
|
)
|
|
|
|
type Services struct {
|
|
Document *document.Service
|
|
Client *client.Service
|
|
}
|
|
|
|
type ConfigProvider interface {
|
|
serviceconfig.ConfigProvider
|
|
documentclean.ConfigProvider
|
|
}
|
|
|
|
type Service struct {
|
|
cfg ConfigProvider
|
|
svc *Services
|
|
}
|
|
|
|
func New(cfg ConfigProvider, svc *Services) *Service {
|
|
return &Service{
|
|
cfg,
|
|
svc,
|
|
}
|
|
}
|