base

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(bucket string, key []byte) []byte

func LeafKeyToKey

func LeafKeyToKey(bucket string, key []byte) []byte

func Prefix

func Prefix(bucket string) []byte

Types

type Base

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

func Open

func Open(path string) (*Base, error)

func (*Base) Clear

func (b *Base) Clear(bucket string)

func (*Base) Close

func (b *Base) Close() error

func (*Base) Delete

func (b *Base) Delete(key []byte) error

func (*Base) Foreach

func (b *Base) Foreach(bucket string) map[string][]byte

func (*Base) Get

func (b *Base) Get(key []byte) ([]byte, error)

func (*Base) GetFromBucket

func (b *Base) GetFromBucket(bucket string, key []byte) ([]byte, error)

func (*Base) Has

func (b *Base) Has(key []byte) (bool, error)

func (*Base) Put

func (b *Base) Put(key []byte, value []byte) error

func (*Base) PutInBucket

func (b *Base) PutInBucket(bucket string, key, value []byte) error

Jump to

Keyboard shortcuts

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