Documentation ¶ Index ¶ func Init(cfg Config, ntw network.Network) error type Config func NewConfig(dataDir string, consensusCfg consensus.Config, dbCfg database.Config, ...) Config func (c Config) DbCfg() database.Config func (c Config) TracerCfg() tracer.Config type Node func NewNode(cfg *Config) (*Node, error) func (n *Node) Start() error func (n *Node) Stop() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init(cfg Config, ntw network.Network) error Types ¶ type Config ¶ type Config struct { DataDir string // contains filtered or unexported fields } func NewConfig ¶ func NewConfig(dataDir string, consensusCfg consensus.Config, dbCfg database.Config, prometheusCfg prometheus.Config, tracerCfg tracer.Config) Config func (Config) DbCfg ¶ added in v0.12.0 func (c Config) DbCfg() database.Config func (Config) TracerCfg ¶ added in v0.12.0 func (c Config) TracerCfg() tracer.Config type Node ¶ type Node struct { // contains filtered or unexported fields } func NewNode ¶ func NewNode(cfg *Config) (*Node, error) func (*Node) Start ¶ func (n *Node) Start() error func (*Node) Stop ¶ func (n *Node) Stop() error Source Files ¶ View all Source files config.go init.go node.go Click to show internal directories. Click to hide internal directories.