node

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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