Documentation ¶
Index ¶
- Variables
- func INSCONSTRUCTOR_NewNodeRecord(ref insolar.Reference, data []byte) ([]byte, []byte, error)
- func INSMETHOD_Destroy(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetNodeInfo(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPublicKey(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetRole(object []byte, data []byte) ([]byte, []byte, error)
- func INS_META_INFO() []map[string]string
- func Initialize() insolar.ContractWrapper
- type NodeRecord
- type RecordInfo
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 INSMETHOD_GetNodeInfo ¶
func INSMETHOD_GetPrototype ¶
func INSMETHOD_GetPublicKey ¶
func INS_META_INFO ¶
func Initialize ¶
func Initialize() 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.
Click to show internal directories.
Click to hide internal directories.