Files
query-orchestration/internal/job/service.go
T

33 lines
519 B
Go
Raw Normal View History

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