nodenetwork

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveHostID added in v0.6.0

func ResolveHostID(ref core.RecordRef) string

ResolveHostID returns a host found by reference.

Types

type Node

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

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

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.Configuration) (*NodeNetwork, error)

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

Jump to

Keyboard shortcuts

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