2024-12-23 12:26:05 +00:00
|
|
|
package result
|
|
|
|
|
|
|
|
|
|
import (
|
2025-02-11 15:22:59 +00:00
|
|
|
"queryorchestration/internal/query"
|
2025-01-31 13:43:55 +00:00
|
|
|
"queryorchestration/internal/serviceconfig"
|
2024-12-23 12:26:05 +00:00
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
|
)
|
|
|
|
|
|
2024-12-24 12:47:40 +00:00
|
|
|
type Result struct {
|
|
|
|
|
ID uuid.UUID
|
|
|
|
|
QueryID uuid.UUID
|
|
|
|
|
QueryVersion int32
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-11 15:22:59 +00:00
|
|
|
type Services struct {
|
|
|
|
|
Query *query.Service
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-29 11:52:37 +00:00
|
|
|
type Service struct {
|
2025-01-31 13:43:55 +00:00
|
|
|
cfg serviceconfig.ConfigProvider
|
2025-02-11 15:22:59 +00:00
|
|
|
svc *Services
|
2024-12-23 12:26:05 +00:00
|
|
|
}
|
|
|
|
|
|
2025-02-11 15:22:59 +00:00
|
|
|
func New(cfg serviceconfig.ConfigProvider, svc *Services) *Service {
|
2025-01-29 11:52:37 +00:00
|
|
|
return &Service{
|
2025-01-31 13:43:55 +00:00
|
|
|
cfg,
|
2025-02-11 15:22:59 +00:00
|
|
|
svc,
|
2024-12-23 12:26:05 +00:00
|
|
|
}
|
|
|
|
|
}
|