noderecord

package
v0.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL