3d434eedb8
Job Status Get and DB tidy up * initalquery * tests * shorttests * testing queries * job * solvedthequery * updatingdb * fixingtests * repotests * shorttests * docker * testspassed
36 lines
696 B
Go
36 lines
696 B
Go
package collector
|
|
|
|
import (
|
|
cleanversion "queryorchestration/internal/document/clean/version"
|
|
textversion "queryorchestration/internal/document/text/version"
|
|
"queryorchestration/internal/serviceconfig"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Collector struct {
|
|
JobID uuid.UUID
|
|
MinCleanVersion int32
|
|
MinTextVersion int32
|
|
ActiveVersion int32
|
|
LatestVersion int32
|
|
Fields map[string]uuid.UUID
|
|
}
|
|
|
|
type Services struct {
|
|
CleanVersion *cleanversion.Service
|
|
TextVersion *textversion.Service
|
|
}
|
|
|
|
type Service struct {
|
|
cfg serviceconfig.ConfigProvider
|
|
svc *Services
|
|
}
|
|
|
|
func New(cfg serviceconfig.ConfigProvider, svc *Services) *Service {
|
|
return &Service{
|
|
cfg,
|
|
svc,
|
|
}
|
|
}
|