Documentation ¶
Index ¶
- Variables
- type BlockHashQuery
- func (*BlockHashQuery) Descriptor() ([]byte, []int)deprecated
- func (x *BlockHashQuery) GetEnd() int64
- func (x *BlockHashQuery) GetNums() []int64
- func (x *BlockHashQuery) GetReqType() RequireType
- func (x *BlockHashQuery) GetStart() int64
- func (*BlockHashQuery) ProtoMessage()
- func (x *BlockHashQuery) ProtoReflect() protoreflect.Message
- func (x *BlockHashQuery) Reset()
- func (x *BlockHashQuery) String() string
- type BlockHashResponse
- func (*BlockHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BlockHashResponse) GetBlockInfos() []*BlockInfo
- func (*BlockHashResponse) ProtoMessage()
- func (x *BlockHashResponse) ProtoReflect() protoreflect.Message
- func (x *BlockHashResponse) Reset()
- func (x *BlockHashResponse) String() string
- type BlockInfo
- type RequireType
- func (RequireType) Descriptor() protoreflect.EnumDescriptor
- func (x RequireType) Enum() *RequireType
- func (RequireType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RequireType) Number() protoreflect.EnumNumber
- func (x RequireType) String() string
- func (RequireType) Type() protoreflect.EnumType
- type SyncHeight
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequireType_name = map[int32]string{ 0: "GETBLOCKHASHES", 1: "GETBLOCKHASHESBYNUMBER", } RequireType_value = map[string]int32{ "GETBLOCKHASHES": 0, "GETBLOCKHASHESBYNUMBER": 1, } )
Enum value maps for RequireType.
View Source
var File_consensus_synchro_pb_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BlockHashQuery ¶
type BlockHashQuery struct { ReqType RequireType `protobuf:"varint,1,opt,name=reqType,proto3,enum=msgpb.RequireType" json:"reqType,omitempty"` Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` Nums []int64 `protobuf:"varint,4,rep,packed,name=nums,proto3" json:"nums,omitempty"` // contains filtered or unexported fields }
func (*BlockHashQuery) Descriptor
deprecated
func (*BlockHashQuery) Descriptor() ([]byte, []int)
Deprecated: Use BlockHashQuery.ProtoReflect.Descriptor instead.
func (*BlockHashQuery) GetEnd ¶
func (x *BlockHashQuery) GetEnd() int64
func (*BlockHashQuery) GetNums ¶
func (x *BlockHashQuery) GetNums() []int64
func (*BlockHashQuery) GetReqType ¶
func (x *BlockHashQuery) GetReqType() RequireType
func (*BlockHashQuery) GetStart ¶
func (x *BlockHashQuery) GetStart() int64
func (*BlockHashQuery) ProtoMessage ¶
func (*BlockHashQuery) ProtoMessage()
func (*BlockHashQuery) ProtoReflect ¶
func (x *BlockHashQuery) ProtoReflect() protoreflect.Message
func (*BlockHashQuery) Reset ¶
func (x *BlockHashQuery) Reset()
func (*BlockHashQuery) String ¶
func (x *BlockHashQuery) String() string
type BlockHashResponse ¶
type BlockHashResponse struct { BlockInfos []*BlockInfo `protobuf:"bytes,1,rep,name=blockInfos,proto3" json:"blockInfos,omitempty"` // contains filtered or unexported fields }
func (*BlockHashResponse) Descriptor
deprecated
func (*BlockHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlockHashResponse.ProtoReflect.Descriptor instead.
func (*BlockHashResponse) GetBlockInfos ¶
func (x *BlockHashResponse) GetBlockInfos() []*BlockInfo
func (*BlockHashResponse) ProtoMessage ¶
func (*BlockHashResponse) ProtoMessage()
func (*BlockHashResponse) ProtoReflect ¶
func (x *BlockHashResponse) ProtoReflect() protoreflect.Message
func (*BlockHashResponse) Reset ¶
func (x *BlockHashResponse) Reset()
func (*BlockHashResponse) String ¶
func (x *BlockHashResponse) String() string
type BlockInfo ¶
type BlockInfo struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*BlockInfo) Descriptor
deprecated
func (*BlockInfo) ProtoMessage ¶
func (*BlockInfo) ProtoMessage()
func (*BlockInfo) ProtoReflect ¶
func (x *BlockInfo) ProtoReflect() protoreflect.Message
type RequireType ¶
type RequireType int32
const ( RequireType_GETBLOCKHASHES RequireType = 0 RequireType_GETBLOCKHASHESBYNUMBER RequireType = 1 )
func (RequireType) Descriptor ¶
func (RequireType) Descriptor() protoreflect.EnumDescriptor
func (RequireType) Enum ¶
func (x RequireType) Enum() *RequireType
func (RequireType) EnumDescriptor
deprecated
func (RequireType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RequireType.Descriptor instead.
func (RequireType) Number ¶
func (x RequireType) Number() protoreflect.EnumNumber
func (RequireType) String ¶
func (x RequireType) String() string
func (RequireType) Type ¶
func (RequireType) Type() protoreflect.EnumType
type SyncHeight ¶
type SyncHeight struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*SyncHeight) Descriptor
deprecated
func (*SyncHeight) Descriptor() ([]byte, []int)
Deprecated: Use SyncHeight.ProtoReflect.Descriptor instead.
func (*SyncHeight) GetHeight ¶
func (x *SyncHeight) GetHeight() int64
func (*SyncHeight) GetTime ¶
func (x *SyncHeight) GetTime() int64
func (*SyncHeight) ProtoMessage ¶
func (*SyncHeight) ProtoMessage()
func (*SyncHeight) ProtoReflect ¶
func (x *SyncHeight) ProtoReflect() protoreflect.Message
func (*SyncHeight) Reset ¶
func (x *SyncHeight) Reset()
func (*SyncHeight) String ¶
func (x *SyncHeight) String() string
Click to show internal directories.
Click to hide internal directories.