2eff52877b
retrieve document by id and tests * working * missing files
23 lines
525 B
Go
23 lines
525 B
Go
package documentdownload
|
|
|
|
import (
|
|
"queryorchestration/internal/serviceconfig"
|
|
"queryorchestration/internal/serviceconfig/objectstore"
|
|
)
|
|
|
|
// ConfigProvider combines database and S3 access for download operations.
|
|
type ConfigProvider interface {
|
|
serviceconfig.ConfigProvider
|
|
objectstore.ConfigProvider
|
|
}
|
|
|
|
// Service handles downloading original document files from S3.
|
|
type Service struct {
|
|
cfg ConfigProvider
|
|
}
|
|
|
|
// New creates a new download service.
|
|
func New(cfg ConfigProvider) *Service {
|
|
return &Service{cfg: cfg}
|
|
}
|