database

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = fmt.Errorf("not found")
View Source
var LogLevel = 0

Functions

This section is empty.

Types

type DB

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

func Open

func Open(filename string, buckets ...[]byte) (*DB, error)

func OpenConfig

func OpenConfig(filename string, bucket []byte, options *bolt.Options) (*DB, error)

func (*DB) Bolt

func (d *DB) Bolt() *bolt.DB

func (*DB) Close

func (d *DB) Close() error

func (*DB) Read

func (d *DB) Read(bucket []byte, key []byte) []byte

func (*DB) ReadNested

func (d *DB) ReadNested(bucket []byte, key []byte, field []byte) []byte

func (*DB) ReadRLP

func (d *DB) ReadRLP(bucket []byte, key []byte, decoded interface{}) error

func (*DB) Write

func (d *DB) Write(bucket []byte, key []byte, encoded []byte) error

func (*DB) WriteNested

func (d *DB) WriteNested(bucket []byte, key []byte, field []byte, encoded []byte) error

func (*DB) WriteRLP

func (d *DB) WriteRLP(bucket []byte, key []byte, thing interface{}) error

Jump to

Keyboard shortcuts

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