Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter interface { ToDataSource() DataSourcer GetType() string }
type DataSourcer ¶
type DataSourcer interface { // GetDocument returns the document with the given id GetDocument(id uuid.UUID) (*types.Document, error) // GetDocuments returns the documents with the given ids GetDocuments(ids []uuid.UUID) ([]*types.Document, error) // StoreDocument stores the given document StoreDocument(document *types.Document) error // Close closes the data source Close() error // GetDTO returns the DTO of the data source GetDTO() Converter }
DataSourcer is an interface for data sources
Click to show internal directories.
Click to hide internal directories.