Documentation
¶
Overview ¶
Package kvhttp exports any visvasity/kv api compatible database over http API for remote access.
Index ¶
- func Handler(db kv.Database) http.Handler
- type DB
- type Snap
- func (snap *Snap) Ascend(ctx context.Context, begin, end string, errp *error) iter.Seq2[string, io.Reader]
- func (snap *Snap) Descend(ctx context.Context, begin, end string, errp *error) iter.Seq2[string, io.Reader]
- func (snap *Snap) Discard(ctx context.Context) error
- func (snap *Snap) Get(ctx context.Context, key string) (io.Reader, error)
- type Tx
- func (tx *Tx) Ascend(ctx context.Context, begin, end string, errp *error) iter.Seq2[string, io.Reader]
- 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, errp *error) iter.Seq2[string, io.Reader]
- func (tx *Tx) Get(ctx context.Context, key string) (io.Reader, error)
- func (tx *Tx) Rollback(ctx context.Context) 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.