Documentation ¶
Index ¶
- type Storage
- func (fs *Storage) GetAllMetadata(withBlob bool) (result []*messages.RawDocument, err error)
- func (fs *Storage) GetDocument(id string) (io.ReadCloser, error)
- func (fs *Storage) GetMetadata(id string, withBlob bool) (*messages.RawDocument, error)
- func (fs *Storage) GetStorageURL(id string) string
- func (fs *Storage) RegisterRoutes(router *gin.Engine)
- func (fs *Storage) RemoveDocument(id string) error
- func (fs *Storage) StoreDocument(stream io.ReadCloser, id string) error
- func (fs *Storage) UpdateMetadata(r *messages.RawDocument) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage file system document storage
func (*Storage) GetAllMetadata ¶
func (fs *Storage) GetAllMetadata(withBlob bool) (result []*messages.RawDocument, err error)
GetAllMetadata load all metadata
func (*Storage) GetDocument ¶
func (fs *Storage) GetDocument(id string) (io.ReadCloser, error)
GetDocument Opens a document by id
func (*Storage) GetMetadata ¶
GetMetadata loads a document's metadata
func (*Storage) GetStorageURL ¶
func (*Storage) RegisterRoutes ¶
func (*Storage) RemoveDocument ¶
RemoveDocument remove document
func (*Storage) StoreDocument ¶
func (fs *Storage) StoreDocument(stream io.ReadCloser, id string) error
StoreDocument stores a document
func (*Storage) UpdateMetadata ¶
func (fs *Storage) UpdateMetadata(r *messages.RawDocument) error
UpdateMetadata updates the metadata of a document
Click to show internal directories.
Click to hide internal directories.