nodedomain

package
v0.7.0-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrototypeReference, _ = core.NewRefFromBase58("1111nhcCrEYuZwMwQ2aZ5tTaNSWBWt2Pn1CUesSMdf.11111111111111111111111111111111")

PrototypeReference to prototype of this contract error checking hides in generator

Functions

func GetPrototype added in v0.6.2

func GetPrototype() core.RecordRef

GetPrototype returns reference to the prototype

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, error)

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

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

AsDelegate saves object as delegate

type NodeDomain

type NodeDomain struct {
	Reference core.RecordRef
	Prototype core.RecordRef
	Code      core.RecordRef
}

NodeDomain holds proxy type

func GetImplementationFrom

func GetImplementationFrom(object core.RecordRef) (*NodeDomain, error)

GetImplementationFrom returns proxy to delegate of given type

func GetObject

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

GetObject returns proxy object

func (*NodeDomain) GetCode added in v0.6.3

func (r *NodeDomain) GetCode() (core.RecordRef, error)

GetCode returns reference to the code

func (*NodeDomain) GetNodeRefByPK added in v0.7.5

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

GetNodeRefByPK is proxy generated method

func (*NodeDomain) GetNodeRefByPKNoWait added in v0.7.5

func (r *NodeDomain) GetNodeRefByPKNoWait(publicKey string) error

GetNodeRefByPKNoWait is proxy generated method

func (*NodeDomain) GetPrototype added in v0.6.2

func (r *NodeDomain) GetPrototype() (core.RecordRef, error)

GetPrototype returns reference to the code

func (*NodeDomain) GetReference

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

GetReference returns reference of the object

func (*NodeDomain) RegisterNode

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

RegisterNode is proxy generated method

func (*NodeDomain) RegisterNodeNoWait

func (r *NodeDomain) RegisterNodeNoWait(publicKey string, role string) error

RegisterNodeNoWait is proxy generated method

func (*NodeDomain) RemoveNode

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

RemoveNode is proxy generated method

func (*NodeDomain) RemoveNodeNoWait

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

RemoveNodeNoWait is proxy generated method

Jump to

Keyboard shortcuts

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