Documentation ¶
Overview ¶
Package docstore provides an indexed JSON document store.
It is used by various services to store their data instead of implementing yet-another persistence layer. It uses a combination of Bolt for storage and Bleve for indexation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Drivers = service.StorageDrivers{}
)
Functions ¶
Types ¶
type DAO ¶
type DAO interface { PutDocument(ctx context.Context, storeID string, doc *docstore.Document) error GetDocument(ctx context.Context, storeID string, docId string) (*docstore.Document, error) DeleteDocument(ctx context.Context, storeID string, docID string) error DeleteDocuments(ctx context.Context, storeID string, query *docstore.DocumentQuery) (int, error) QueryDocuments(ctx context.Context, storeID string, query *docstore.DocumentQuery) (chan *docstore.Document, error) CountDocuments(ctx context.Context, storeID string, query *docstore.DocumentQuery) (int, error) ListStores(ctx context.Context) ([]string, error) CloseAndDrop(ctx context.Context) error Reset() error }
Click to show internal directories.
Click to hide internal directories.