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) 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
Click to show internal directories.
Click to hide internal directories.