nodedomain

package
v0.9.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func INSCONSTRUCTOR_NewNodeDomain

func INSCONSTRUCTOR_NewNodeDomain(data []byte) ([]byte, []byte, error)

func INSMETHOD_GetCode

func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetNodeRefByPublicKey

func INSMETHOD_GetNodeRefByPublicKey(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetPrototype

func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_RegisterNode

func INSMETHOD_RegisterNode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_RemoveNode

func INSMETHOD_RemoveNode(object []byte, data []byte) ([]byte, []byte, error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() XXX_insolar.ContractWrapper

Types

type NodeDomain

type NodeDomain struct {
	foundation.BaseContract

	NodeIndexPublicKey foundation.StableMap
}

NodeDomain holds node records.

func NewNodeDomain

func NewNodeDomain() (*NodeDomain, error)

NewNodeDomain create new NodeDomain.

func (NodeDomain) GetNodeRefByPublicKey

func (nd NodeDomain) GetNodeRefByPublicKey(publicKey string) (string, error)

GetNodeRefByPublicKey returns node reference. ins:immutable

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 insolar.Reference) error

RemoveNode deletes node from registry.

Jump to

Keyboard shortcuts

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