nodedomain

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeDomain

type NodeDomain struct {
	foundation.BaseContract

	NodeIndexPK map[string]string
}

NodeDomain holds noderecords

func NewNodeDomain

func NewNodeDomain() (*NodeDomain, error)

NewNodeDomain create new NodeDomain

func (*NodeDomain) GetNodeRefByPK added in v0.7.5

func (nd *NodeDomain) GetNodeRefByPK(publicKey string) (string, error)

GetNodeRefByPK returns node ref

func (*NodeDomain) RegisterNode

func (nd *NodeDomain) RegisterNode(publicKey string, role string) (string, error)

RegisterNode registers node in system

func (*NodeDomain) RemoveNode

func (nd *NodeDomain) RemoveNode(nodeRef core.RecordRef) error

RemoveNode deletes node from registry

Jump to

Keyboard shortcuts

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