2025-01-24 16:12:25 +00:00
|
|
|
package document
|
|
|
|
|
|
|
|
|
|
import (
|
2025-01-31 13:43:55 +00:00
|
|
|
"queryorchestration/internal/serviceconfig"
|
2025-01-24 16:12:25 +00:00
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
|
)
|
|
|
|
|
|
2025-02-03 17:30:50 +00:00
|
|
|
type Location = string
|
|
|
|
|
|
2025-01-24 16:12:25 +00:00
|
|
|
type Document struct {
|
|
|
|
|
ID uuid.UUID
|
|
|
|
|
JobID uuid.UUID
|
|
|
|
|
Hash string
|
|
|
|
|
Location Location
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Service struct {
|
2025-01-31 13:43:55 +00:00
|
|
|
cfg serviceconfig.ConfigProvider
|
2025-01-24 16:12:25 +00:00
|
|
|
}
|
|
|
|
|
|
2025-01-31 13:43:55 +00:00
|
|
|
func New(cfg serviceconfig.ConfigProvider) *Service {
|
2025-01-24 16:12:25 +00:00
|
|
|
return &Service{
|
2025-01-31 13:43:55 +00:00
|
|
|
cfg,
|
2025-01-24 16:12:25 +00:00
|
|
|
}
|
|
|
|
|
}
|