export

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FairNodeDB

type FairNodeDB struct {
	BlockChain    *mongo.Collection
	BlockChainRaw *mongo.Collection
	// contains filtered or unexported fields
}

func NewSession

func NewSession(useSRV bool, user, pass, host, dbname, dbopt string) (*FairNodeDB, error)

func (*FairNodeDB) Export

func (fnb *FairNodeDB) Export(w io.Writer) error

func (*FairNodeDB) ExportN

func (fnb *FairNodeDB) ExportN(w io.Writer, first uint64, last uint64) error

func (*FairNodeDB) GetRawBlock

func (fnb *FairNodeDB) GetRawBlock(blockHash string) (*types.Block, error)

func (*FairNodeDB) Start

func (fnb *FairNodeDB) Start() error

func (*FairNodeDB) Stop

func (fnb *FairNodeDB) Stop() error

Jump to

Keyboard shortcuts

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