2025-02-12 19:00:25 +00:00
|
|
|
package documentsync
|
|
|
|
|
|
|
|
|
|
import (
|
2025-03-10 11:03:00 +00:00
|
|
|
"queryorchestration/internal/client"
|
2025-02-12 19:00:25 +00:00
|
|
|
"queryorchestration/internal/document"
|
|
|
|
|
"queryorchestration/internal/serviceconfig"
|
|
|
|
|
"queryorchestration/internal/serviceconfig/queue/documentclean"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Services struct {
|
|
|
|
|
Document *document.Service
|
2025-03-10 11:03:00 +00:00
|
|
|
Client *client.Service
|
2025-02-12 19:00:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
|
}
|
|
|
|
|
}
|