nodenetwork

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0, BSD-3-Clause-Clear Imports: 25 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 ClaimToNode added in v0.8.0

func ClaimToNode(version string, claim *packets.NodeJoinClaim) (core.Node, error)

func NewNode

func NewNode(
	id core.RecordRef,
	role core.StaticRole,
	publicKey crypto.PublicKey,
	address, 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

	SetShortID(shortID core.ShortNodeID)
	SetState(state core.NodeState)
	ChangeState()
	SetLeavingETA(number core.PulseNumber)
}

Jump to

Keyboard shortcuts

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