noderecord

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

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

	PublicKey string
	Role      core.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

GetPublicKey returns public key

func (*NodeRecord) GetRole

func (nr *NodeRecord) GetRole() core.NodeRole

GetRole returns role

func (*NodeRecord) GetRoleAndPublicKey

func (nr *NodeRecord) GetRoleAndPublicKey() (core.NodeRole, string)

GetRoleAndPublicKey returns role-pubKey pair

Jump to

Keyboard shortcuts

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