nodenetwork

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateHash added in v0.6.3

func CalculateHash(scheme core.PlatformCryptographyScheme, list []core.Node) (result []byte, err error)

CalculateHash calculates hash of active node list

func NewNode

func NewNode(
	id core.RecordRef,
	roles []core.StaticRole,
	publicKey crypto.PublicKey,
	pulseNum core.PulseNumber,
	physicalAddress,
	version string) core.Node

func NewNodeKeeper added in v0.6.3

func NewNodeKeeper(origin core.Node) network.NodeKeeper

NewNodeKeeper create new NodeKeeper

func NewNodeNetwork

func NewNodeNetwork(configuration configuration.HostNetwork, certificate core.Certificate) (core.NodeNetwork, error)

NewNodeNetwork create active node component

Types

type MutableNode added in v0.6.3

type MutableNode interface {
	core.Node

	SetPulse(core.PulseNumber)
	SetShortID(shortID core.ShortNodeID)
}

Jump to

Keyboard shortcuts

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