555b6d420b
Document Result Endpoint * testing * cleantesting * progress * query * lint * readme * dockerclient * api * passtest * tests * test
36 lines
512 B
Go
36 lines
512 B
Go
package document
|
|
|
|
import (
|
|
"queryorchestration/internal/serviceconfig"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Location struct {
|
|
Bucket string
|
|
Key string
|
|
}
|
|
|
|
type DocumentSummary struct {
|
|
ID uuid.UUID
|
|
ClientID uuid.UUID
|
|
Hash string
|
|
}
|
|
|
|
type DocumentExternal struct {
|
|
Id uuid.UUID
|
|
ClientID string
|
|
Hash string
|
|
Fields map[string]interface{}
|
|
}
|
|
|
|
type Service struct {
|
|
cfg serviceconfig.ConfigProvider
|
|
}
|
|
|
|
func New(cfg serviceconfig.ConfigProvider) *Service {
|
|
return &Service{
|
|
cfg,
|
|
}
|
|
}
|