noderecord

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 NewNodeRecord

func NewNodeRecord(publicKey string, roles []string, ip string) *ContractConstructorHolder

NewNodeRecord is constructor

func (*ContractConstructorHolder) AsChild

func (r *ContractConstructorHolder) AsChild(objRef core.RecordRef) (*NodeRecord, error)

AsChild saves object as child

func (*ContractConstructorHolder) AsDelegate

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

AsDelegate saves object as delegate

type NodeRecord

type NodeRecord struct {
	Reference core.RecordRef
}

NodeRecord holds proxy type

func GetImplementationFrom

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

GetImplementationFrom returns proxy to delegate of given type

func GetObject

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

GetObject returns proxy object

func (*NodeRecord) Destroy

func (r *NodeRecord) Destroy() error

Destroy is proxy generated method

func (*NodeRecord) DestroyNoWait

func (r *NodeRecord) DestroyNoWait() error

DestroyNoWait is proxy generated method

func (*NodeRecord) GetClass

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

GetClass returns reference to the class

func (*NodeRecord) GetNodeInfo added in v0.6.1

func (r *NodeRecord) GetNodeInfo() (RecordInfo, error)

GetNodeInfo is proxy generated method

func (*NodeRecord) GetNodeInfoNoWait added in v0.6.1

func (r *NodeRecord) GetNodeInfoNoWait() error

GetNodeInfoNoWait is proxy generated method

func (*NodeRecord) GetPublicKey

func (r *NodeRecord) GetPublicKey() (string, error)

GetPublicKey is proxy generated method

func (*NodeRecord) GetPublicKeyNoWait

func (r *NodeRecord) GetPublicKeyNoWait() error

GetPublicKeyNoWait is proxy generated method

func (*NodeRecord) GetReference

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

GetReference returns reference of the object

func (*NodeRecord) GetRole

func (r *NodeRecord) GetRole() ([]core.NodeRole, error)

GetRole is proxy generated method

func (*NodeRecord) GetRoleNoWait

func (r *NodeRecord) GetRoleNoWait() error

GetRoleNoWait is proxy generated method

type RecordInfo added in v0.6.1

type RecordInfo struct {
	PublicKey string
	Roles     []core.NodeRole
	IP        string
}

Jump to

Keyboard shortcuts

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