database

package
v0.0.0-...-10d6790 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func New

func New(path string) (*Database, error)

func (*Database) ForEach

func (db *Database) ForEach(prefix string, handler func(entry []byte) error) error

func (*Database) Get

func (db *Database) Get(key string, handler func(entry []byte) error) error

func (*Database) Set

func (db *Database) Set(key string, value interface{}) error

func (*Database) Update

func (db *Database) Update(key string, handler func([]byte) []byte) error

Jump to

Keyboard shortcuts

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