Documentation
¶
Overview ¶
Package leveldbstore implements the blob.StoreCloser interface on LevelDB.
Index ¶
- func Opener(_ context.Context, addr string) (blob.StoreCloser, error)
- type KV
- func (s KV) Delete(ctx context.Context, key string) error
- func (s KV) Get(ctx context.Context, key string) ([]byte, error)
- func (s KV) Has(ctx context.Context, keys ...string) (blob.KeySet, error)
- func (s KV) Len(ctx context.Context) (int64, error)
- func (s KV) List(ctx context.Context, start string) iter.Seq2[string, error]
- func (s KV) Put(ctx context.Context, opts blob.PutOptions) error
- type Options
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
A KV implements the blob.KV interface backed by a LevelDB file.
type Options ¶
type Options struct {
Create bool // create the database if it does not exist
}
Options provide optional settings for opening and creating a KV.
type Store ¶
Store implements the blob.StoreCloser interface over a LevelDB instance.
Click to show internal directories.
Click to hide internal directories.