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-07 12:12:51 +00:00
|
|
|
type Location struct {
|
|
|
|
|
Bucket string
|
|
|
|
|
Key string
|
|
|
|
|
}
|
2025-02-03 17:30:50 +00:00
|
|
|
|
2025-01-24 16:12:25 +00:00
|
|
|
type Document struct {
|
2025-03-10 11:03:00 +00:00
|
|
|
ID uuid.UUID
|
|
|
|
|
ClientID uuid.UUID
|
|
|
|
|
Hash string
|
2025-01-24 16:12:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
}
|