Documentation ¶
Index ¶
- Variables
- func GetPrototype() core.RecordRef
- type ContractConstructorHolder
- type NodeDomain
- func (r *NodeDomain) GetCode() (core.RecordRef, error)
- func (r *NodeDomain) GetNodeRefByPK(publicKey string) (string, error)
- func (r *NodeDomain) GetNodeRefByPKNoWait(publicKey string) error
- func (r *NodeDomain) GetPrototype() (core.RecordRef, error)
- func (r *NodeDomain) GetReference() core.RecordRef
- func (r *NodeDomain) RegisterNode(publicKey string, role string) (string, error)
- func (r *NodeDomain) RegisterNodeNoWait(publicKey string, role string) error
- func (r *NodeDomain) RemoveNode(nodeRef core.RecordRef) error
- func (r *NodeDomain) RemoveNodeNoWait(nodeRef core.RecordRef) error
Constants ¶
This section is empty.
Variables ¶
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
GetPrototype returns reference to the prototype
Types ¶
type ContractConstructorHolder ¶
type ContractConstructorHolder struct {
// contains filtered or unexported fields
}
ContractConstructorHolder holds logic with object construction
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 ¶
NodeDomain holds proxy type
func GetImplementationFrom ¶
func GetImplementationFrom(object core.RecordRef) (*NodeDomain, error)
GetImplementationFrom returns proxy to delegate of given type
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