Documentation ¶
Index ¶
- Variables
- func GetClass() core.RecordRef
- type ContractConstructorHolder
- type NodeDomain
- func (r *NodeDomain) Authorize(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) (string, []core.NodeRole, error)
- func (r *NodeDomain) AuthorizeNoWait(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) error
- func (r *NodeDomain) GetClass() core.RecordRef
- func (r *NodeDomain) GetReference() core.RecordRef
- func (r *NodeDomain) IsAuthorized(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) (bool, error)
- func (r *NodeDomain) IsAuthorizedNoWait(nodeRef core.RecordRef, seed []byte, signatureRaw []byte) error
- func (r *NodeDomain) RegisterNode(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ...) ([]byte, error)
- func (r *NodeDomain) RegisterNodeNoWait(publicKey string, numberOfBootstrapNodes int, majorityRule int, roles []string, ...) error
- func (r *NodeDomain) RemoveNode(nodeRef core.RecordRef) error
- func (r *NodeDomain) RemoveNodeNoWait(nodeRef core.RecordRef) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ClassReference = core.NewRefFromBase58("")
ClassReference to class of this contract
Functions ¶
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) 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
Click to show internal directories.
Click to hide internal directories.