bbd86fb4ea
Collector Build Version * lint * fixtests
27 lines
430 B
Go
27 lines
430 B
Go
package collector
|
|
|
|
import (
|
|
"queryorchestration/internal/serviceconfig"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Collector struct {
|
|
ClientID uuid.UUID
|
|
MinCleanVersion int64
|
|
MinTextVersion int64
|
|
ActiveVersion int32
|
|
LatestVersion int32
|
|
Fields map[string]uuid.UUID
|
|
}
|
|
|
|
type Service struct {
|
|
cfg serviceconfig.ConfigProvider
|
|
}
|
|
|
|
func New(cfg serviceconfig.ConfigProvider) *Service {
|
|
return &Service{
|
|
cfg,
|
|
}
|
|
}
|