bolt

package
v0.0.0-...-921adc7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config viperjacket.Config) database.Database

New creates, initializes and returns BoltDB.

Types

type BoltDB

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

func (*BoltDB) Close

func (bdb *BoltDB) Close() error

func (*BoltDB) GetBlock

func (bdb *BoltDB) GetBlock(hash string) ([]byte, error)

func (*BoltDB) GetBlockchain

func (bdb *BoltDB) GetBlockchain() ([]byte, error)

func (*BoltDB) SaveBlock

func (bdb *BoltDB) SaveBlock(hash string, data []byte) error

func (*BoltDB) SaveBlockchain

func (bdb *BoltDB) SaveBlockchain(data []byte) error

Jump to

Keyboard shortcuts

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