nodemanager

package
v0.0.3-chain Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: GPL-3.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNode

func StartNode(node *node.Node)

start node

func StopNode

func StopNode(node *node.Node)

stop the node

func WaitNode

func WaitNode(node *node.Node)

wait the node to stop

Types

type FullNodeMaker

type FullNodeMaker struct {
}

func (FullNodeMaker) MakeNode

func (maker FullNodeMaker) MakeNode(ctx *cli.Context) *node.Node

func (FullNodeMaker) MakeNodeConfig

func (maker FullNodeMaker) MakeNodeConfig(ctx *cli.Context) *node.Config

type NodeMaker

type NodeMaker interface {

	//create Node
	MakeNode(ctx *cli.Context) *node.Node

	//create NodeConfig
	MakeNodeConfig(ctx *cli.Context) *node.Config
}

type NodeManager

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

func New

func New(ctx *cli.Context, maker NodeMaker) NodeManager

func (*NodeManager) Node

func (nodeManager *NodeManager) Node() *node.Node

func (*NodeManager) Start

func (nodeManager *NodeManager) Start() error

func (*NodeManager) Stop

func (nodeManager *NodeManager) Stop() error

Jump to

Keyboard shortcuts

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