chaintrackdb

package module
v0.0.0-...-7f70f2e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = serrors.New("not found")

Functions

This section is empty.

Types

type DB

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

func Open

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

func (*DB) Close

func (d *DB) Close() error

func (*DB) NewWriteTransaction

func (d *DB) NewWriteTransaction(ctx context.Context) (*WriteTransaction, error)

func (*DB) PrintStats

func (d *DB) PrintStats()

func (*DB) WriteTransaction

func (d *DB) WriteTransaction(ctx context.Context, f func(tx *WriteTransaction) error) error

type WriteTransaction

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

func (*WriteTransaction) Commit

func (w *WriteTransaction) Commit() error

func (*WriteTransaction) Count

func (w *WriteTransaction) Count(path string) (uint64, error)

func (*WriteTransaction) CreateMap

func (w *WriteTransaction) CreateMap(path string) error

func (*WriteTransaction) Exists

func (w *WriteTransaction) Exists(path string) (bool, error)

func (*WriteTransaction) Get

func (w *WriteTransaction) Get(path string) ([]byte, error)

func (*WriteTransaction) Put

func (w *WriteTransaction) Put(path string, d []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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