Documentation ¶
Index ¶
- Variables
- type CursorError
- type DB
- func (l *DB) AddOperation(op *pbkv.KVOperation)
- func (l *DB) AddOperations(ops *pbkv.KVOperations)
- func (l *DB) Flush(ctx context.Context, cursor *sink.Cursor) (count int, err error)
- func (l *DB) Get(ctx context.Context, key string) (val []byte, err error)
- func (l *DB) GetByPrefix(ctx context.Context, prefix string, limit int) (values []*kvv1.KV, limitReached bool, err error)
- func (l *DB) GetCursor(ctx context.Context) (*sink.Cursor, error)
- func (l *DB) GetMany(ctx context.Context, keys []string) (values [][]byte, err error)
- func (l *DB) MarshalLogObject(encoder zapcore.ObjectEncoder) error
- func (l *DB) Scan(ctx context.Context, begin, exclusiveEnd string, limit int) (values []*kvv1.KV, limitReached bool, err error)
- func (l *DB) WriteCursor(ctx context.Context, c *sink.Cursor) error
- type DBLoader
- type DBReader
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCursorNotFound = errors.New("cursor not found")
View Source
var ErrInvalidArguments = errors.New("invalid arguments")
View Source
var ErrNotFound = errors.New("not found")
View Source
var InfiniteEndBytes = []byte{}/* 128 elements not displayed */
FIXME: open-ended scans need to be implemented in kvdb
Functions ¶
This section is empty.
Types ¶
type CursorError ¶
type CursorError struct {
// contains filtered or unexported fields
}
type DB ¶
type DB struct { QueryRowsLimit int // contains filtered or unexported fields }
func (*DB) AddOperation ¶
func (l *DB) AddOperation(op *pbkv.KVOperation)
func (*DB) AddOperations ¶
func (l *DB) AddOperations(ops *pbkv.KVOperations)
func (*DB) GetByPrefix ¶
func (*DB) MarshalLogObject ¶
func (l *DB) MarshalLogObject(encoder zapcore.ObjectEncoder) error
type DBReader ¶
type DBReader interface { Get(ctx context.Context, key string) (value []byte, err error) GetMany(ctx context.Context, keys []string) (values [][]byte, err error) GetByPrefix(ctx context.Context, prefix string, limit int) (values []*kvv1.KV, limitReached bool, err error) Scan(ctx context.Context, start string, exclusiveEnd string, limit int) (values []*kvv1.KV, limitReached bool, err error) }
Click to show internal directories.
Click to hide internal directories.