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

27 lines
430 B
Go
Raw Normal View History

2024-12-20 17:35:33 +00:00
package collector
2025-01-06 12:26:28 +00:00
import (
"queryorchestration/internal/serviceconfig"
"github.com/google/uuid"
2025-01-06 12:26:28 +00:00
)
2024-12-20 17:35:33 +00:00
type Collector struct {
ClientID uuid.UUID
MinCleanVersion int32
MinTextVersion int32
ActiveVersion int32
LatestVersion int32
Fields map[string]uuid.UUID
}
2024-12-23 16:01:54 +00:00
type Service struct {
cfg serviceconfig.ConfigProvider
2024-12-20 17:35:33 +00:00
}
func New(cfg serviceconfig.ConfigProvider) *Service {
2025-01-06 12:26:28 +00:00
return &Service{
cfg,
2025-01-06 12:26:28 +00:00
}
2024-12-20 17:35:33 +00:00
}