nodedomain

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: Apache-2.0 Imports: 3 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, 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
}

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) Authorize

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

Authorize is proxy generated method

func (*NodeDomain) AuthorizeNoWait

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

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

IsAuthorized is proxy generated method

func (*NodeDomain) IsAuthorizedNoWait

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

IsAuthorizedNoWait is proxy generated method

func (*NodeDomain) RegisterNode

func (r *NodeDomain) RegisterNode(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ip string) ([]byte, error)

RegisterNode is proxy generated method

func (*NodeDomain) RegisterNodeNoWait

func (r *NodeDomain) RegisterNodeNoWait(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ip 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