nodedomain

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClassReference = core.NewRefFromBase58("")

ClassReference to class of this contract

Functions

func GetClass

func GetClass() core.RecordRef

GetClass returns reference to the class

Types

type ContractConstructorHolder

type ContractConstructorHolder struct {
	// contains filtered or unexported fields
}

ContractConstructorHolder holds logic with object construction

func NewNodeDomain

func NewNodeDomain() *ContractConstructorHolder

NewNodeDomain is constructor

func (*ContractConstructorHolder) AsChild

func (r *ContractConstructorHolder) AsChild(objRef core.RecordRef) *NodeDomain

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

func (r *ContractConstructorHolder) AsDelegate(objRef core.RecordRef) *NodeDomain

AsDelegate saves object as delegate

type NodeDomain

type NodeDomain struct {
	Reference core.RecordRef
}

NodeDomain holds proxy type

func GetImplementationFrom

func GetImplementationFrom(object core.RecordRef) *NodeDomain

GetImplementationFrom returns proxy to delegate of given type

func GetObject

func GetObject(ref core.RecordRef) (r *NodeDomain)

GetObject returns proxy object

func (*NodeDomain) Authorize

func (r *NodeDomain) Authorize(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) (string, core.NodeRole, string)

Authorize is proxy generated method

func (*NodeDomain) AuthorizeNoWait

func (r *NodeDomain) AuthorizeNoWait(nodeRef core.RecordRef, seed []byte, signatureRaw []byte)

AuthorizeNoWait is proxy generated method

func (*NodeDomain) GetClass

func (r *NodeDomain) GetClass() core.RecordRef

GetClass returns reference to the class

func (*NodeDomain) GetReference

func (r *NodeDomain) GetReference() core.RecordRef

GetReference returns reference of the object

func (*NodeDomain) IsAuthorized

func (r *NodeDomain) IsAuthorized(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) bool

IsAuthorized is proxy generated method

func (*NodeDomain) IsAuthorizedNoWait

func (r *NodeDomain) IsAuthorizedNoWait(nodeRef core.RecordRef, seed []byte, signatureRaw []byte)

IsAuthorizedNoWait is proxy generated method

func (*NodeDomain) RegisterNode

func (r *NodeDomain) RegisterNode(pk string, role string) core.RecordRef

RegisterNode is proxy generated method

func (*NodeDomain) RegisterNodeNoWait

func (r *NodeDomain) RegisterNodeNoWait(pk string, role string)

RegisterNodeNoWait is proxy generated method

func (*NodeDomain) RemoveNode

func (r *NodeDomain) RemoveNode(nodeRef core.RecordRef)

RemoveNode is proxy generated method

func (*NodeDomain) RemoveNodeNoWait

func (r *NodeDomain) RemoveNodeNoWait(nodeRef core.RecordRef)

RemoveNodeNoWait is proxy generated method

Jump to

Keyboard shortcuts

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