Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSQLDBProvider ¶
func DefaultSQLDBProvider(ctx *DBContext) (*dex.SQLDBBackend, error)
DefaultDBProvider returns a database using the DBBackend and DBDir specified in the ctx.Config.
Types ¶
type Node ¶
type Node struct { cmn.BaseService // contains filtered or unexported fields }
func DefaultNewNode ¶
DefaultNewNode returns a blockchain node with default settings for the PrivValidator, and DBProvider. It implements NodeProvider.
func (*Node) RunForever ¶
func (n *Node) RunForever()
RunForever waits for an interrupt signal and stops the node.
type NodeProvider ¶
NodeProvider takes a config and a logger and returns a ready to go Node.
type SQLDBProvider ¶
type SQLDBProvider func(*DBContext) (*dex.SQLDBBackend, error)
DBProvider takes a DBContext and returns an instantiated DB.
Click to show internal directories.
Click to hide internal directories.