15adaebfcd
DRAFT PR : WIP working through ideas for integration * movearound * attempttwo * openapi * further sanding * fix * start on tests * runthroughsingleconfig * somechanges * reflectissue * removeerrs * mostlyremovepanic * removeenv * noncfgtests * go * repo * fix service config test * add PWD to all * test fix * fix lint * todo for later * passingunittests * alltests * testlogger * testloggername * clean
33 lines
519 B
Go
33 lines
519 B
Go
package job
|
|
|
|
import (
|
|
"queryorchestration/internal/client"
|
|
"queryorchestration/internal/job/collector"
|
|
"queryorchestration/internal/serviceconfig"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Job struct {
|
|
ID uuid.UUID
|
|
ClientID uuid.UUID
|
|
CanSync bool
|
|
}
|
|
|
|
type Services struct {
|
|
Collector *collector.Service
|
|
Client *client.Service
|
|
}
|
|
|
|
type Service struct {
|
|
cfg serviceconfig.ConfigProvider
|
|
svc *Services
|
|
}
|
|
|
|
func New(cfg serviceconfig.ConfigProvider, svc *Services) *Service {
|
|
return &Service{
|
|
cfg,
|
|
svc,
|
|
}
|
|
}
|