Documentation
¶
Index ¶
- func Handler(db kv.Database) http.Handler
- type DB
- type Iter
- type Snap
- func (snap *Snap) Ascend(ctx context.Context, begin, end string) (kv.Iterator, error)
- func (snap *Snap) Descend(ctx context.Context, begin, end string) (kv.Iterator, error)
- func (snap *Snap) Discard(ctx context.Context) error
- func (snap *Snap) Get(ctx context.Context, key string) (io.Reader, error)
- func (snap *Snap) Scan(ctx context.Context) (kv.Iterator, error)
- type Tx
- func (tx *Tx) Ascend(ctx context.Context, begin, end string) (kv.Iterator, error)
- func (tx *Tx) Commit(ctx context.Context) error
- func (tx *Tx) Delete(ctx context.Context, key string) error
- func (tx *Tx) Descend(ctx context.Context, begin, end string) (kv.Iterator, error)
- func (tx *Tx) Get(ctx context.Context, key string) (io.Reader, error)
- func (tx *Tx) Rollback(ctx context.Context) error
- func (tx *Tx) Scan(ctx context.Context) (kv.Iterator, error)
- func (tx *Tx) Set(ctx context.Context, key string, value io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Snap ¶
type Snap struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.