nodedomain

package
v0.0.0-...-5de87d6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func INSCONSTRUCTOR_NewNodeDomain

func INSCONSTRUCTOR_NewNodeDomain(ref insolar.Reference, 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() 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