Files
query-orchestration/internal/job/service.go
T
Jay Brown 15adaebfcd Merged in feature/serviceconfig-integration (pull request #38)
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
2025-01-31 13:43:55 +00:00

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,
}
}