Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var INSATTR_GetNodeInfo_API = true
View Source
var INSATTR_GetPublicKey_API = true
Functions ¶
This section is empty.
Types ¶
type NodeRecord ¶
type NodeRecord struct { foundation.BaseContract Record RecordInfo }
NodeRecord contains info about node
func NewNodeRecord ¶
func NewNodeRecord(publicKey string, roleStr string) (*NodeRecord, error)
NewNodeRecord creates new NodeRecord
func (*NodeRecord) Destroy ¶
func (nr *NodeRecord) Destroy() error
Destroy makes request to destroy current node record
func (*NodeRecord) GetNodeInfo ¶ added in v0.6.1
func (nr *NodeRecord) GetNodeInfo() (RecordInfo, error)
GetNodeInfo returns RecordInfo
func (*NodeRecord) GetPublicKey ¶
func (nr *NodeRecord) GetPublicKey() (string, error)
GetPublicKey returns public key
func (*NodeRecord) GetRole ¶
func (nr *NodeRecord) GetRole() (core.StaticRole, error)
GetRole returns role
type RecordInfo ¶ added in v0.6.1
type RecordInfo struct { PublicKey string Role core.StaticRole }
RecordInfo holds record info
Click to show internal directories.
Click to hide internal directories.