81e7223560
Text Extraction * bases * go * splitting * structure * movetoasync * movetoasync * settinguptrigger * reorder * storevent * standardisepollingvalidation * unittests * fixlint * fixlint * awscfg * generatesample * followthrough * tests * clena * store * externalidcleanup * clientid * local * baseunittests * putobjecttests * tests
36 lines
509 B
Go
36 lines
509 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 string
|
|
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,
|
|
}
|
|
}
|