nutsdb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 6 Imported by: 0

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