Documentation ¶
Index ¶
- func INSCONSTRUCTOR_NewNodeDomain(data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetNodeRefByPublicKey(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_RegisterNode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_RemoveNode(object []byte, data []byte) ([]byte, []byte, error)
- func INS_META_INFO() []map[string]string
- func Initialize() XXX_insolar.ContractWrapper
- type NodeDomain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func INSMETHOD_GetPrototype ¶
func INSMETHOD_RegisterNode ¶
func INSMETHOD_RemoveNode ¶
func INS_META_INFO ¶
func Initialize ¶
func Initialize() XXX_insolar.ContractWrapper
Types ¶
type NodeDomain ¶
type NodeDomain struct { foundation.BaseContract NodeIndexPublicKey foundation.StableMap }
NodeDomain holds node records.
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.
Click to show internal directories.
Click to hide internal directories.