transactiondb

package
v0.0.0-...-a6fcbeb Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found in db")

Functions

This section is empty.

Types

type DB

type DB struct {
	*bolt.DB
	// contains filtered or unexported fields
}

func Open

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

func (*DB) FindMatches

func (d *DB) FindMatches(prefixes [][16]byte) ([]*wtwire.StateUpdate, error)

func (*DB) GetSessionInfo

func (d *DB) GetSessionInfo(sessionID uint64) (*wtwire.SessionInfo, error)

func (*DB) InsertSessionInfo

func (d *DB) InsertSessionInfo(info *wtwire.SessionInfo) error

func (*DB) InsertTransaction

func (d *DB) InsertTransaction(blob *wtwire.StateUpdate) error

func (*DB) ListEntries

func (d *DB) ListEntries() error

func (*DB) Wipe

func (d *DB) Wipe() error

Jump to

Keyboard shortcuts

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