Documentation ¶
Overview ¶
Package test is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
ResultStatus NodeInfo PubKey PubKeyEd25519
Index ¶
- Variables
- type NodeInfo
- func (this *NodeInfo) Equal(that interface{}) bool
- func (m *NodeInfo) GetListenAddr() string
- func (m *NodeInfo) GetMoniker() string
- func (m *NodeInfo) GetNetwork() string
- func (m *NodeInfo) GetOther() []string
- func (m *NodeInfo) GetPubKey() *PubKey
- func (m *NodeInfo) GetRemoteAddr() string
- func (m *NodeInfo) GetVersion() string
- func (this *NodeInfo) GoString() string
- func (m *NodeInfo) Marshal() (data []byte, err error)
- func (m *NodeInfo) MarshalTo(data []byte) (int, error)
- func (*NodeInfo) ProtoMessage()
- func (m *NodeInfo) Reset()
- func (m *NodeInfo) Size() (n int)
- func (this *NodeInfo) String() string
- func (m *NodeInfo) Unmarshal(data []byte) error
- type PubKey
- func (this *PubKey) Equal(that interface{}) bool
- func (m *PubKey) GetEd25519() *PubKeyEd25519
- func (this *PubKey) GoString() string
- func (m *PubKey) Marshal() (data []byte, err error)
- func (m *PubKey) MarshalTo(data []byte) (int, error)
- func (*PubKey) ProtoMessage()
- func (m *PubKey) Reset()
- func (m *PubKey) Size() (n int)
- func (this *PubKey) String() string
- func (m *PubKey) Unmarshal(data []byte) error
- type PubKeyEd25519
- func (this *PubKeyEd25519) Equal(that interface{}) bool
- func (m *PubKeyEd25519) GetBytes() []byte
- func (this *PubKeyEd25519) GoString() string
- func (m *PubKeyEd25519) Marshal() (data []byte, err error)
- func (m *PubKeyEd25519) MarshalTo(data []byte) (int, error)
- func (*PubKeyEd25519) ProtoMessage()
- func (m *PubKeyEd25519) Reset()
- func (m *PubKeyEd25519) Size() (n int)
- func (this *PubKeyEd25519) String() string
- func (m *PubKeyEd25519) Unmarshal(data []byte) error
- type ResultStatus
- func (this *ResultStatus) Equal(that interface{}) bool
- func (m *ResultStatus) GetLatestBlockHash() []byte
- func (m *ResultStatus) GetLatestBlockHeight() int64
- func (m *ResultStatus) GetLatestBlocktime() int64
- func (m *ResultStatus) GetNodeInfo() *NodeInfo
- func (m *ResultStatus) GetPubKey() *PubKey
- func (this *ResultStatus) GoString() string
- func (m *ResultStatus) Marshal() (data []byte, err error)
- func (m *ResultStatus) MarshalTo(data []byte) (int, error)
- func (*ResultStatus) ProtoMessage()
- func (m *ResultStatus) Reset()
- func (m *ResultStatus) Size() (n int)
- func (this *ResultStatus) String() string
- func (m *ResultStatus) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTest = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type NodeInfo ¶
type NodeInfo struct { PubKey *PubKey `protobuf:"bytes,1,req,name=pubKey" json:"pubKey,omitempty"` Moniker string `protobuf:"bytes,2,req,name=moniker" json:"moniker"` Network string `protobuf:"bytes,3,req,name=network" json:"network"` RemoteAddr string `protobuf:"bytes,4,req,name=remoteAddr" json:"remoteAddr"` ListenAddr string `protobuf:"bytes,5,req,name=listenAddr" json:"listenAddr"` Version string `protobuf:"bytes,6,req,name=version" json:"version"` Other []string `protobuf:"bytes,7,rep,name=other" json:"other,omitempty"` }
func (*NodeInfo) GetListenAddr ¶
func (*NodeInfo) GetMoniker ¶
func (*NodeInfo) GetNetwork ¶
func (*NodeInfo) GetRemoteAddr ¶
func (*NodeInfo) GetVersion ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
type PubKey ¶
type PubKey struct {
Ed25519 *PubKeyEd25519 `protobuf:"bytes,1,opt,name=ed25519" json:"ed25519,omitempty"`
}
func (*PubKey) GetEd25519 ¶
func (m *PubKey) GetEd25519() *PubKeyEd25519
func (*PubKey) ProtoMessage ¶
func (*PubKey) ProtoMessage()
type PubKeyEd25519 ¶
type PubKeyEd25519 struct {
Bytes []byte `protobuf:"bytes,1,req,name=bytes" json:"bytes"`
}
func (*PubKeyEd25519) Equal ¶ added in v0.7.0
func (this *PubKeyEd25519) Equal(that interface{}) bool
func (*PubKeyEd25519) GetBytes ¶
func (m *PubKeyEd25519) GetBytes() []byte
func (*PubKeyEd25519) GoString ¶ added in v0.7.0
func (this *PubKeyEd25519) GoString() string
func (*PubKeyEd25519) Marshal ¶
func (m *PubKeyEd25519) Marshal() (data []byte, err error)
func (*PubKeyEd25519) ProtoMessage ¶
func (*PubKeyEd25519) ProtoMessage()
func (*PubKeyEd25519) Reset ¶
func (m *PubKeyEd25519) Reset()
func (*PubKeyEd25519) Size ¶
func (m *PubKeyEd25519) Size() (n int)
func (*PubKeyEd25519) String ¶
func (this *PubKeyEd25519) String() string
func (*PubKeyEd25519) Unmarshal ¶
func (m *PubKeyEd25519) Unmarshal(data []byte) error
type ResultStatus ¶
type ResultStatus struct { NodeInfo *NodeInfo `protobuf:"bytes,1,opt,name=nodeInfo" json:"nodeInfo,omitempty"` PubKey *PubKey `protobuf:"bytes,2,req,name=pubKey" json:"pubKey,omitempty"` LatestBlockHash []byte `protobuf:"bytes,3,req,name=latestBlockHash" json:"latestBlockHash"` LatestBlockHeight int64 `protobuf:"varint,4,req,name=latestBlockHeight" json:"latestBlockHeight"` LatestBlocktime int64 `protobuf:"varint,5,req,name=latestBlocktime" json:"latestBlocktime"` }
func (*ResultStatus) Equal ¶ added in v0.7.0
func (this *ResultStatus) Equal(that interface{}) bool
func (*ResultStatus) GetLatestBlockHash ¶
func (m *ResultStatus) GetLatestBlockHash() []byte
func (*ResultStatus) GetLatestBlockHeight ¶
func (m *ResultStatus) GetLatestBlockHeight() int64
func (*ResultStatus) GetLatestBlocktime ¶
func (m *ResultStatus) GetLatestBlocktime() int64
func (*ResultStatus) GetNodeInfo ¶
func (m *ResultStatus) GetNodeInfo() *NodeInfo
func (*ResultStatus) GetPubKey ¶
func (m *ResultStatus) GetPubKey() *PubKey
func (*ResultStatus) GoString ¶ added in v0.7.0
func (this *ResultStatus) GoString() string
func (*ResultStatus) Marshal ¶
func (m *ResultStatus) Marshal() (data []byte, err error)
func (*ResultStatus) ProtoMessage ¶
func (*ResultStatus) ProtoMessage()
func (*ResultStatus) Reset ¶
func (m *ResultStatus) Reset()
func (*ResultStatus) Size ¶
func (m *ResultStatus) Size() (n int)
func (*ResultStatus) String ¶
func (this *ResultStatus) String() string
func (*ResultStatus) Unmarshal ¶
func (m *ResultStatus) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.