Documentation
¶
Index ¶
- func CalculateHash(scheme core.PlatformCryptographyScheme, list []core.Node) (result []byte, err error)
- func ClaimToNode(version string, claim *packets.NodeJoinClaim) (core.Node, error)
- func NewNode(id core.RecordRef, role core.StaticRole, publicKey crypto.PublicKey, ...) core.Node
- func NewNodeKeeper(origin core.Node) network.NodeKeeper
- func NewNodeNetwork(configuration configuration.HostNetwork, certificate core.Certificate) (core.NodeNetwork, error)
- type MutableNode
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 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)
SetVersion(version string)
}
Click to show internal directories.
Click to hide internal directories.