Documentation
¶
Index ¶
- Variables
- func Del(ctx context.Context, blocks block.Fetcher, root ipld.Link, key string) (ipld.Link, shard.Diff, error)
- func Entries(ctx context.Context, blocks block.Fetcher, root ipld.Link, ...) iter.Seq2[Entry, error]
- func Get(ctx context.Context, blocks block.Fetcher, root ipld.Link, key string) (ipld.Link, error)
- func New() (block.BlockView[shard.RootShard], error)
- func Put(ctx context.Context, blocks block.Fetcher, root ipld.Link, key string, ...) (ipld.Link, shard.Diff, error)
- type EntriesOption
- type Entry
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func Del ¶
func Del(ctx context.Context, blocks block.Fetcher, root ipld.Link, key string) (ipld.Link, shard.Diff, error)
Del deletes the value for the given key from the bucket. If the key is not found, ErrNotFound is returned as the error value.
func Get ¶
Get the stored value for the given key from the bucket. If the key is not found, ErrNotFound is returned as the error value.
Types ¶
type EntriesOption ¶
type EntriesOption func(*entriesOptions)
func WithKeyGreaterThan ¶
func WithKeyGreaterThan(gt string) EntriesOption
func WithKeyGreaterThanOrEqual ¶
func WithKeyGreaterThanOrEqual(gte string) EntriesOption
func WithKeyLessThan ¶
func WithKeyLessThan(lt string) EntriesOption
func WithKeyLessThanOrEqual ¶
func WithKeyLessThanOrEqual(lte string) EntriesOption
func WithKeyPrefix ¶
func WithKeyPrefix(prefix string) EntriesOption
Click to show internal directories.
Click to hide internal directories.