Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
DocumentID string `json:"document_id"`
Pdf []byte `json:"pdf,omitempty"`
Ascii []byte `json:"ascii"`
Created sql.NullTime `json:"created_at,omitempty"`
Deleted sql.NullTime `json:"deleted_at"`
}
Document
type DocumentInformation ¶
DocumentInformation
type StorageService ¶
type StorageService interface {
Save(doc *DocumentInformation) error
Get(id string) (*Document, error)
}
StorageService
func NewStorageService ¶
func NewStorageService(db *sql.DB, encrypter encrypt.EncryptService) (StorageService, error)
NewStorageService
Click to show internal directories.
Click to hide internal directories.