node

package
v0.0.0-...-491e088 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MODEL_RELAY = "relay"
	MODEL_MINER = "miner"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MineNode

type MineNode struct {
	// contains filtered or unexported fields
}

func (*MineNode) Start

func (n *MineNode) Start()

func (*MineNode) Stop

func (n *MineNode) Stop()

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode(logger *zap.Logger, globalConfig *config.GlobalConfig) *Node

func (*Node) Start

func (n *Node) Start()

func (*Node) Stop

func (n *Node) Stop()

func (*Node) Wait

func (n *Node) Wait()

type RelayNode

type RelayNode struct {
	// contains filtered or unexported fields
}

func (*RelayNode) Start

func (n *RelayNode) Start()

func (*RelayNode) Stop

func (n *RelayNode) Stop()

Jump to

Keyboard shortcuts

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