nutsdb

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNutsDB

func NewNutsDB(path string, option storage.Option) (storage.IndexDB, error)

Types

type NutsDB

type NutsDB struct {
	// contains filtered or unexported fields
}

func (*NutsDB) Close

func (n *NutsDB) Close() error

Close implements storage.IndexDB.

func (*NutsDB) Delete

func (n *NutsDB) Delete(ctx context.Context, key []byte) error

Delete implements storage.IndexDB.

func (*NutsDB) Exist

func (n *NutsDB) Exist(ctx context.Context, key []byte) bool

Exist implements storage.IndexDB.

func (*NutsDB) Expired

func (n *NutsDB) Expired(ctx context.Context, f storage.IterateFunc) error

Expired implements storage.IndexDB.

func (*NutsDB) GC

func (n *NutsDB) GC(ctx context.Context) error

GC implements storage.IndexDB.

func (*NutsDB) Get

func (n *NutsDB) Get(ctx context.Context, key []byte) (*object.Metadata, error)

Get implements storage.IndexDB.

func (*NutsDB) Iterate

func (n *NutsDB) Iterate(ctx context.Context, prefix []byte, f storage.IterateFunc) error

Iterate implements storage.IndexDB.

func (*NutsDB) Set

func (n *NutsDB) Set(ctx context.Context, key []byte, val *object.Metadata) error

Set implements storage.IndexDB.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL