Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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, roles []string, ip 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
Click to show internal directories.
Click to hide internal directories.