memdb

package
Version: v0.0.0-...-5f1ae1a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryDB

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

func NewEmptyMemoryDB

func NewEmptyMemoryDB() *MemoryDB

func NewMemoryDB

func NewMemoryDB(paths []string) (*MemoryDB, error)

func (*MemoryDB) Close

func (mem *MemoryDB) Close() error

func (*MemoryDB) Get

func (mem *MemoryDB) Get(hash data.Hash256) (data.Storer, error)

func (*MemoryDB) Insert

func (mem *MemoryDB) Insert(item data.Storer) error

func (*MemoryDB) Ledger

func (mem *MemoryDB) Ledger() (*data.LedgerSet, error)

func (*MemoryDB) Stats

func (mem *MemoryDB) Stats() string

Source Files

Jump to

Keyboard shortcuts

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