Documentation ¶
Overview ¶
Package notification is a generated protocol buffer package.
It is generated from these files:
notification.proto
It has these top-level messages:
NotificationMessage NotificationMode BlockNotification BlockRequest BlockResponse Ping HeaderHashesReq HeaderHashesResp HeightReq HeightResp
Index ¶
- Variables
- type BlockNotification
- type BlockRequest
- func (*BlockRequest) Descriptor() ([]byte, []int)
- func (m *BlockRequest) GetBlockNumber() uint64
- func (m *BlockRequest) GetBlockParam() isBlockRequest_BlockParam
- func (m *BlockRequest) GetHeaderHash() []byte
- func (*BlockRequest) ProtoMessage()
- func (m *BlockRequest) Reset()
- func (m *BlockRequest) String() string
- func (*BlockRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type BlockRequest_BlockNumber
- type BlockRequest_HeaderHash
- type BlockResponse
- type HeaderHashesReq
- type HeaderHashesResp
- func (*HeaderHashesResp) Descriptor() ([]byte, []int)
- func (m *HeaderHashesResp) GetCount() uint64
- func (m *HeaderHashesResp) GetHeaderHashes() [][]byte
- func (m *HeaderHashesResp) GetStartBlockNumber() uint64
- func (*HeaderHashesResp) ProtoMessage()
- func (m *HeaderHashesResp) Reset()
- func (m *HeaderHashesResp) String() string
- type HeightReq
- type HeightResp
- type NotificationMessage
- func (*NotificationMessage) Descriptor() ([]byte, []int)
- func (m *NotificationMessage) GetBlockReqData() *BlockRequest
- func (m *NotificationMessage) GetBlockRespData() *BlockResponse
- func (m *NotificationMessage) GetBnData() *BlockNotification
- func (m *NotificationMessage) GetData() isNotificationMessage_Data
- func (m *NotificationMessage) GetFuncName() NotificationMessage_FuncName
- func (m *NotificationMessage) GetHeaderHashesReqData() *HeaderHashesReq
- func (m *NotificationMessage) GetHeaderHashesRespData() *HeaderHashesResp
- func (m *NotificationMessage) GetHeightReqData() *HeightReq
- func (m *NotificationMessage) GetHeightRespData() *HeightResp
- func (m *NotificationMessage) GetNmData() *NotificationMode
- func (m *NotificationMessage) GetPingData() *Ping
- func (*NotificationMessage) ProtoMessage()
- func (m *NotificationMessage) Reset()
- func (m *NotificationMessage) String() string
- func (*NotificationMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type NotificationMessage_BlockReqData
- type NotificationMessage_BlockRespData
- type NotificationMessage_BnData
- type NotificationMessage_FuncName
- type NotificationMessage_HeaderHashesReqData
- type NotificationMessage_HeaderHashesRespData
- type NotificationMessage_HeightReqData
- type NotificationMessage_HeightRespData
- type NotificationMessage_NmData
- type NotificationMessage_PingData
- type NotificationMode
- type Ping
Constants ¶
This section is empty.
Variables ¶
View Source
var NotificationMessage_FuncName_name = map[int32]string{
0: "NM",
1: "PING",
2: "BN",
3: "BLOCKREQ",
4: "BLOCKRESP",
5: "HEADERHASHESREQ",
6: "HEADERHASHESRESP",
7: "HEIGHTREQ",
8: "HEIGHTRESP",
}
View Source
var NotificationMessage_FuncName_value = map[string]int32{
"NM": 0,
"PING": 1,
"BN": 2,
"BLOCKREQ": 3,
"BLOCKRESP": 4,
"HEADERHASHESREQ": 5,
"HEADERHASHESRESP": 6,
"HEIGHTREQ": 7,
"HEIGHTRESP": 8,
}
Functions ¶
This section is empty.
Types ¶
type BlockNotification ¶
type BlockNotification struct { BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber" json:"block_number,omitempty"` HeaderHash []byte `protobuf:"bytes,2,opt,name=headerHash,proto3" json:"headerHash,omitempty"` }
func (*BlockNotification) Descriptor ¶
func (*BlockNotification) Descriptor() ([]byte, []int)
func (*BlockNotification) GetBlockNumber ¶
func (m *BlockNotification) GetBlockNumber() uint64
func (*BlockNotification) GetHeaderHash ¶
func (m *BlockNotification) GetHeaderHash() []byte
func (*BlockNotification) ProtoMessage ¶
func (*BlockNotification) ProtoMessage()
func (*BlockNotification) Reset ¶
func (m *BlockNotification) Reset()
func (*BlockNotification) String ¶
func (m *BlockNotification) String() string
type BlockRequest ¶
type BlockRequest struct { // Types that are valid to be assigned to BlockParam: // *BlockRequest_HeaderHash // *BlockRequest_BlockNumber BlockParam isBlockRequest_BlockParam `protobuf_oneof:"blockParam"` }
func (*BlockRequest) Descriptor ¶
func (*BlockRequest) Descriptor() ([]byte, []int)
func (*BlockRequest) GetBlockNumber ¶
func (m *BlockRequest) GetBlockNumber() uint64
func (*BlockRequest) GetBlockParam ¶
func (m *BlockRequest) GetBlockParam() isBlockRequest_BlockParam
func (*BlockRequest) GetHeaderHash ¶
func (m *BlockRequest) GetHeaderHash() []byte
func (*BlockRequest) ProtoMessage ¶
func (*BlockRequest) ProtoMessage()
func (*BlockRequest) Reset ¶
func (m *BlockRequest) Reset()
func (*BlockRequest) String ¶
func (m *BlockRequest) String() string
func (*BlockRequest) XXX_OneofFuncs ¶
func (*BlockRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type BlockRequest_BlockNumber ¶
type BlockRequest_BlockNumber struct {
BlockNumber uint64 `protobuf:"varint,2,opt,name=blockNumber,oneof"`
}
type BlockRequest_HeaderHash ¶
type BlockRequest_HeaderHash struct {
HeaderHash []byte `protobuf:"bytes,1,opt,name=headerHash,proto3,oneof"`
}
type BlockResponse ¶
type BlockResponse struct { Block *qrl.Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"` Found bool `protobuf:"varint,2,opt,name=found" json:"found,omitempty"` }
func (*BlockResponse) Descriptor ¶
func (*BlockResponse) Descriptor() ([]byte, []int)
func (*BlockResponse) GetBlock ¶
func (m *BlockResponse) GetBlock() *qrl.Block
func (*BlockResponse) GetFound ¶
func (m *BlockResponse) GetFound() bool
func (*BlockResponse) ProtoMessage ¶
func (*BlockResponse) ProtoMessage()
func (*BlockResponse) Reset ¶
func (m *BlockResponse) Reset()
func (*BlockResponse) String ¶
func (m *BlockResponse) String() string
type HeaderHashesReq ¶
type HeaderHashesReq struct { Count uint64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` StartBlockNumber uint64 `protobuf:"varint,2,opt,name=startBlockNumber" json:"startBlockNumber,omitempty"` }
func (*HeaderHashesReq) Descriptor ¶
func (*HeaderHashesReq) Descriptor() ([]byte, []int)
func (*HeaderHashesReq) GetCount ¶
func (m *HeaderHashesReq) GetCount() uint64
func (*HeaderHashesReq) GetStartBlockNumber ¶
func (m *HeaderHashesReq) GetStartBlockNumber() uint64
func (*HeaderHashesReq) ProtoMessage ¶
func (*HeaderHashesReq) ProtoMessage()
func (*HeaderHashesReq) Reset ¶
func (m *HeaderHashesReq) Reset()
func (*HeaderHashesReq) String ¶
func (m *HeaderHashesReq) String() string
type HeaderHashesResp ¶
type HeaderHashesResp struct { Count uint64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` StartBlockNumber uint64 `protobuf:"varint,2,opt,name=startBlockNumber" json:"startBlockNumber,omitempty"` HeaderHashes [][]byte `protobuf:"bytes,3,rep,name=headerHashes,proto3" json:"headerHashes,omitempty"` }
func (*HeaderHashesResp) Descriptor ¶
func (*HeaderHashesResp) Descriptor() ([]byte, []int)
func (*HeaderHashesResp) GetCount ¶
func (m *HeaderHashesResp) GetCount() uint64
func (*HeaderHashesResp) GetHeaderHashes ¶
func (m *HeaderHashesResp) GetHeaderHashes() [][]byte
func (*HeaderHashesResp) GetStartBlockNumber ¶
func (m *HeaderHashesResp) GetStartBlockNumber() uint64
func (*HeaderHashesResp) ProtoMessage ¶
func (*HeaderHashesResp) ProtoMessage()
func (*HeaderHashesResp) Reset ¶
func (m *HeaderHashesResp) Reset()
func (*HeaderHashesResp) String ¶
func (m *HeaderHashesResp) String() string
type HeightReq ¶
type HeightReq struct { }
func (*HeightReq) Descriptor ¶
func (*HeightReq) ProtoMessage ¶
func (*HeightReq) ProtoMessage()
type HeightResp ¶
type HeightResp struct {
Height uint64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
}
func (*HeightResp) Descriptor ¶
func (*HeightResp) Descriptor() ([]byte, []int)
func (*HeightResp) GetHeight ¶
func (m *HeightResp) GetHeight() uint64
func (*HeightResp) ProtoMessage ¶
func (*HeightResp) ProtoMessage()
func (*HeightResp) Reset ¶
func (m *HeightResp) Reset()
func (*HeightResp) String ¶
func (m *HeightResp) String() string
type NotificationMessage ¶
type NotificationMessage struct { FuncName NotificationMessage_FuncName `` /* 126-byte string literal not displayed */ // Types that are valid to be assigned to Data: // *NotificationMessage_NmData // *NotificationMessage_PingData // *NotificationMessage_BnData // *NotificationMessage_BlockReqData // *NotificationMessage_BlockRespData // *NotificationMessage_HeaderHashesReqData // *NotificationMessage_HeaderHashesRespData // *NotificationMessage_HeightReqData // *NotificationMessage_HeightRespData Data isNotificationMessage_Data `protobuf_oneof:"data"` }
func (*NotificationMessage) Descriptor ¶
func (*NotificationMessage) Descriptor() ([]byte, []int)
func (*NotificationMessage) GetBlockReqData ¶
func (m *NotificationMessage) GetBlockReqData() *BlockRequest
func (*NotificationMessage) GetBlockRespData ¶
func (m *NotificationMessage) GetBlockRespData() *BlockResponse
func (*NotificationMessage) GetBnData ¶
func (m *NotificationMessage) GetBnData() *BlockNotification
func (*NotificationMessage) GetData ¶
func (m *NotificationMessage) GetData() isNotificationMessage_Data
func (*NotificationMessage) GetFuncName ¶
func (m *NotificationMessage) GetFuncName() NotificationMessage_FuncName
func (*NotificationMessage) GetHeaderHashesReqData ¶
func (m *NotificationMessage) GetHeaderHashesReqData() *HeaderHashesReq
func (*NotificationMessage) GetHeaderHashesRespData ¶
func (m *NotificationMessage) GetHeaderHashesRespData() *HeaderHashesResp
func (*NotificationMessage) GetHeightReqData ¶
func (m *NotificationMessage) GetHeightReqData() *HeightReq
func (*NotificationMessage) GetHeightRespData ¶
func (m *NotificationMessage) GetHeightRespData() *HeightResp
func (*NotificationMessage) GetNmData ¶
func (m *NotificationMessage) GetNmData() *NotificationMode
func (*NotificationMessage) GetPingData ¶
func (m *NotificationMessage) GetPingData() *Ping
func (*NotificationMessage) ProtoMessage ¶
func (*NotificationMessage) ProtoMessage()
func (*NotificationMessage) Reset ¶
func (m *NotificationMessage) Reset()
func (*NotificationMessage) String ¶
func (m *NotificationMessage) String() string
func (*NotificationMessage) XXX_OneofFuncs ¶
func (*NotificationMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type NotificationMessage_BlockReqData ¶
type NotificationMessage_BlockReqData struct {
BlockReqData *BlockRequest `protobuf:"bytes,5,opt,name=blockReqData,oneof"`
}
type NotificationMessage_BlockRespData ¶
type NotificationMessage_BlockRespData struct {
BlockRespData *BlockResponse `protobuf:"bytes,6,opt,name=blockRespData,oneof"`
}
type NotificationMessage_BnData ¶
type NotificationMessage_BnData struct {
BnData *BlockNotification `protobuf:"bytes,4,opt,name=bnData,oneof"`
}
type NotificationMessage_FuncName ¶
type NotificationMessage_FuncName int32
const ( NotificationMessage_NM NotificationMessage_FuncName = 0 NotificationMessage_PING NotificationMessage_FuncName = 1 NotificationMessage_BN NotificationMessage_FuncName = 2 NotificationMessage_BLOCKREQ NotificationMessage_FuncName = 3 NotificationMessage_BLOCKRESP NotificationMessage_FuncName = 4 NotificationMessage_HEADERHASHESREQ NotificationMessage_FuncName = 5 NotificationMessage_HEADERHASHESRESP NotificationMessage_FuncName = 6 NotificationMessage_HEIGHTREQ NotificationMessage_FuncName = 7 NotificationMessage_HEIGHTRESP NotificationMessage_FuncName = 8 )
func (NotificationMessage_FuncName) EnumDescriptor ¶
func (NotificationMessage_FuncName) EnumDescriptor() ([]byte, []int)
func (NotificationMessage_FuncName) String ¶
func (x NotificationMessage_FuncName) String() string
type NotificationMessage_HeaderHashesReqData ¶
type NotificationMessage_HeaderHashesReqData struct {
HeaderHashesReqData *HeaderHashesReq `protobuf:"bytes,7,opt,name=headerHashesReqData,oneof"`
}
type NotificationMessage_HeaderHashesRespData ¶
type NotificationMessage_HeaderHashesRespData struct {
HeaderHashesRespData *HeaderHashesResp `protobuf:"bytes,8,opt,name=headerHashesRespData,oneof"`
}
type NotificationMessage_HeightReqData ¶
type NotificationMessage_HeightReqData struct {
HeightReqData *HeightReq `protobuf:"bytes,9,opt,name=heightReqData,oneof"`
}
type NotificationMessage_HeightRespData ¶
type NotificationMessage_HeightRespData struct {
HeightRespData *HeightResp `protobuf:"bytes,10,opt,name=heightRespData,oneof"`
}
type NotificationMessage_NmData ¶
type NotificationMessage_NmData struct {
NmData *NotificationMode `protobuf:"bytes,2,opt,name=nmData,oneof"`
}
type NotificationMessage_PingData ¶
type NotificationMessage_PingData struct {
PingData *Ping `protobuf:"bytes,3,opt,name=pingData,oneof"`
}
type NotificationMode ¶
type NotificationMode struct {
Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"`
}
func (*NotificationMode) Descriptor ¶
func (*NotificationMode) Descriptor() ([]byte, []int)
func (*NotificationMode) GetEnable ¶
func (m *NotificationMode) GetEnable() bool
func (*NotificationMode) ProtoMessage ¶
func (*NotificationMode) ProtoMessage()
func (*NotificationMode) Reset ¶
func (m *NotificationMode) Reset()
func (*NotificationMode) String ¶
func (m *NotificationMode) String() string
type Ping ¶
type Ping struct {
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
}
func (*Ping) Descriptor ¶
func (*Ping) GetTimestamp ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.