storage

package
v0.8.0-beta.11 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrefixDb

type PrefixDb interface {
	Get(ctx context.Context, key []byte) ([]byte, error)
	Put(ctx context.Context, key []byte, val []byte) error
}

PrefixDb interface abstracts the database operations.

type SubPrefixDb

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

func NewSubPrefixDb

func NewSubPrefixDb(store db.Db, pfx []byte) *SubPrefixDb

func (*SubPrefixDb) Get

func (s *SubPrefixDb) Get(ctx context.Context, key []byte) ([]byte, error)

func (*SubPrefixDb) Put

func (s *SubPrefixDb) Put(ctx context.Context, key []byte, val []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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