datasource

package
v0.0.0-...-e6ff8ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 2 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL