Documentation ¶
Index ¶
Constants ¶
View Source
const ( RoleUnknown = NodeRole(iota) RoleVirtual RoleHeavyMaterial RoleLightMaterial )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeRecord ¶
type NodeRecord struct { foundation.BaseContract PublicKey string Role NodeRole }
NodeRecord contains info about node
func NewNodeRecord ¶
func NewNodeRecord(pk string, roleS string) *NodeRecord
New creates new NodeRecord
func (*NodeRecord) Destroy ¶
func (nr *NodeRecord) Destroy()
SelfDestroy makes request to destroy current node record
func (*NodeRecord) GetPublicKey ¶
func (nr *NodeRecord) GetPublicKey() string
func (*NodeRecord) GetRole ¶
func (nr *NodeRecord) GetRole() NodeRole
Click to show internal directories.
Click to hide internal directories.