nodedomain

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 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

Types

type ContractHolder

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

func NewNodeDomain

func NewNodeDomain() *ContractHolder

func (*ContractHolder) AsChild

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

func (*ContractHolder) AsDelegate

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

type NodeDomain

type NodeDomain struct {
	Reference core.RecordRef
}

Contract proxy type

func GetImplementationFrom

func GetImplementationFrom(object core.RecordRef) *NodeDomain

func GetObject

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

GetObject

func (*NodeDomain) GetClass

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

GetClass

func (*NodeDomain) GetNodeRecord

func (r *NodeDomain) GetNodeRecord(ref core.RecordRef) *noderecord.NodeRecord

func (*NodeDomain) GetNodeRecordNoWait

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

func (*NodeDomain) GetReference

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

GetReference

func (*NodeDomain) IsAuthorized added in v0.4.0

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

func (*NodeDomain) IsAuthorizedNoWait added in v0.4.0

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

func (*NodeDomain) RegisterNode

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

func (*NodeDomain) RegisterNodeNoWait

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

func (*NodeDomain) RemoveNode

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

func (*NodeDomain) RemoveNodeNoWait

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

Jump to

Keyboard shortcuts

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