noderecord

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var INSATTR_GetNodeInfo_API = true

is needed for proxy

View Source
var INSATTR_GetPublicKey_API = true

is needed for proxy

Functions

func INSCONSTRUCTOR_NewNodeRecord

func INSCONSTRUCTOR_NewNodeRecord(data []byte) ([]byte, []byte, error)

func INSMETHOD_Destroy

func INSMETHOD_Destroy(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetCode

func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetNodeInfo

func INSMETHOD_GetNodeInfo(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetPrototype

func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetPublicKey

func INSMETHOD_GetPublicKey(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetRole

func INSMETHOD_GetRole(object []byte, data []byte) ([]byte, []byte, error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() XXX_insolar.ContractWrapper

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

func (nr NodeRecord) GetNodeInfo() (RecordInfo, error)

GetNodeInfo returns RecordInfo. ins:immutable

func (NodeRecord) GetPublicKey

func (nr NodeRecord) GetPublicKey() (string, error)

GetPublicKey returns public key. ins:immutable

func (NodeRecord) GetRole

func (nr NodeRecord) GetRole() (insolar.StaticRole, error)

GetRole returns role. ins:immutable

type RecordInfo

type RecordInfo struct {
	PublicKey string
	Role      insolar.StaticRole
}

RecordInfo holds record info.

Jump to

Keyboard shortcuts

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