nodenetwork

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: Apache-2.0 Imports: 4 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 {
	// contains filtered or unexported fields
}

Node is an essence which provides communication between network level and EventBus.

func NewNode

func NewNode(nodeID core.RecordRef) *Node

NewNode creates a node with given args.

func (Node) GetID added in v0.2.0

func (node Node) GetID() core.RecordRef

GetID returns a Node ID.

type NodeNetwork added in v0.2.0

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

NodeNetwork is node manager.

func NewNodeNetwork

func NewNodeNetwork(nodeCfg configuration.NodeNetwork) *NodeNetwork

NewNodeNetwork creates a new node network.

func (*NodeNetwork) GetID added in v0.2.0

func (network *NodeNetwork) GetID() core.RecordRef

GetID returns current node id

func (*NodeNetwork) ResolveHostID added in v0.2.0

func (network *NodeNetwork) ResolveHostID(ref core.RecordRef) string

ResolveHostID returns a host found by reference.

Jump to

Keyboard shortcuts

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