nodes

package
v0.0.0-...-792b9bb Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name     string
	Services *services.ServiceRegistry // Registry of all core services
	// contains filtered or unexported fields
}

Node is a container for all the components of a node.

func NewNode

func NewNode(ctx *cli.Context) (*Node, error)

NewNode initialized the node and get everything going

func (*Node) Start

func (n *Node) Start()

Start initializes the node and all its services

func (*Node) Stop

func (n *Node) Stop()

Stop stops the node and forces a shutdown

func (*Node) Wait

func (n *Node) Wait()

Wait is used to block

Jump to

Keyboard shortcuts

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