Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type IndexConfig ¶
type QueryOptions ¶
type QueryOptions struct {
Where *WhereFilter
Search string
Limit int
Cursor string
}
type QueryResult ¶
type Store ¶
type Store interface {
MigrateDocs(ctx context.Context) error
ConfigureIndexes(ctx context.Context, db int, collection string, cfg IndexConfig) (IndexConfig, error)
GetIndexConfig(ctx context.Context, db int, collection string) (IndexConfig, error)
PutDoc(ctx context.Context, db int, collection, id string, value []byte, opts WriteOptions, createOnly bool) (Document, bool, error)
GetDoc(ctx context.Context, db int, collection, id string) (Document, error)
DeleteDoc(ctx context.Context, db int, collection, id string) (bool, error)
QueryDocs(ctx context.Context, db int, collection string, opts QueryOptions) (QueryResult, error)
}
type WhereFilter ¶
Click to show internal directories.
Click to hide internal directories.