msgpb

package
v3.11.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use BlockInfo.ProtoReflect.Descriptor instead.

func (*BlockInfo) GetHash

func (x *BlockInfo) GetHash() []byte

func (*BlockInfo) GetNumber

func (x *BlockInfo) GetNumber() int64

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) ProtoReflect

func (x *BlockInfo) ProtoReflect() protoreflect.Message

func (*BlockInfo) Reset

func (x *BlockInfo) Reset()

func (*BlockInfo) String

func (x *BlockInfo) String() string

type RequireType

type RequireType int32
const (
	RequireType_GETBLOCKHASHES         RequireType = 0
	RequireType_GETBLOCKHASHESBYNUMBER RequireType = 1
)

func (RequireType) Descriptor

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

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

Jump to

Keyboard shortcuts

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