msgpb

package
v0.0.0-...-376a440 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequireType_name = map[int32]string{
	0: "GETBLOCKHASHES",
	1: "GETBLOCKHASHESBYNUMBER",
}
View Source
var RequireType_value = map[string]int32{
	"GETBLOCKHASHES":         0,
	"GETBLOCKHASHESBYNUMBER": 1,
}

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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*BlockHashQuery) Descriptor

func (*BlockHashQuery) Descriptor() ([]byte, []int)

func (*BlockHashQuery) GetEnd

func (m *BlockHashQuery) GetEnd() int64

func (*BlockHashQuery) GetNums

func (m *BlockHashQuery) GetNums() []int64

func (*BlockHashQuery) GetReqType

func (m *BlockHashQuery) GetReqType() RequireType

func (*BlockHashQuery) GetStart

func (m *BlockHashQuery) GetStart() int64

func (*BlockHashQuery) ProtoMessage

func (*BlockHashQuery) ProtoMessage()

func (*BlockHashQuery) Reset

func (m *BlockHashQuery) Reset()

func (*BlockHashQuery) String

func (m *BlockHashQuery) String() string

func (*BlockHashQuery) XXX_DiscardUnknown

func (m *BlockHashQuery) XXX_DiscardUnknown()

func (*BlockHashQuery) XXX_Marshal

func (m *BlockHashQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHashQuery) XXX_Merge

func (m *BlockHashQuery) XXX_Merge(src proto.Message)

func (*BlockHashQuery) XXX_Size

func (m *BlockHashQuery) XXX_Size() int

func (*BlockHashQuery) XXX_Unmarshal

func (m *BlockHashQuery) XXX_Unmarshal(b []byte) error

type BlockHashResponse

type BlockHashResponse struct {
	BlockInfos           []*BlockInfo `protobuf:"bytes,1,rep,name=blockInfos,proto3" json:"blockInfos,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*BlockHashResponse) Descriptor

func (*BlockHashResponse) Descriptor() ([]byte, []int)

func (*BlockHashResponse) GetBlockInfos

func (m *BlockHashResponse) GetBlockInfos() []*BlockInfo

func (*BlockHashResponse) ProtoMessage

func (*BlockHashResponse) ProtoMessage()

func (*BlockHashResponse) Reset

func (m *BlockHashResponse) Reset()

func (*BlockHashResponse) String

func (m *BlockHashResponse) String() string

func (*BlockHashResponse) XXX_DiscardUnknown

func (m *BlockHashResponse) XXX_DiscardUnknown()

func (*BlockHashResponse) XXX_Marshal

func (m *BlockHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHashResponse) XXX_Merge

func (m *BlockHashResponse) XXX_Merge(src proto.Message)

func (*BlockHashResponse) XXX_Size

func (m *BlockHashResponse) XXX_Size() int

func (*BlockHashResponse) XXX_Unmarshal

func (m *BlockHashResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockInfo) Descriptor

func (*BlockInfo) Descriptor() ([]byte, []int)

func (*BlockInfo) GetHash

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

func (*BlockInfo) GetNumber

func (m *BlockInfo) GetNumber() int64

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) Reset

func (m *BlockInfo) Reset()

func (*BlockInfo) String

func (m *BlockInfo) String() string

func (*BlockInfo) XXX_DiscardUnknown

func (m *BlockInfo) XXX_DiscardUnknown()

func (*BlockInfo) XXX_Marshal

func (m *BlockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockInfo) XXX_Merge

func (m *BlockInfo) XXX_Merge(src proto.Message)

func (*BlockInfo) XXX_Size

func (m *BlockInfo) XXX_Size() int

func (*BlockInfo) XXX_Unmarshal

func (m *BlockInfo) XXX_Unmarshal(b []byte) error

type RequireType

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

func (RequireType) EnumDescriptor

func (RequireType) EnumDescriptor() ([]byte, []int)

func (RequireType) String

func (x RequireType) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SyncHeight) Descriptor

func (*SyncHeight) Descriptor() ([]byte, []int)

func (*SyncHeight) GetHeight

func (m *SyncHeight) GetHeight() int64

func (*SyncHeight) GetTime

func (m *SyncHeight) GetTime() int64

func (*SyncHeight) ProtoMessage

func (*SyncHeight) ProtoMessage()

func (*SyncHeight) Reset

func (m *SyncHeight) Reset()

func (*SyncHeight) String

func (m *SyncHeight) String() string

func (*SyncHeight) XXX_DiscardUnknown

func (m *SyncHeight) XXX_DiscardUnknown()

func (*SyncHeight) XXX_Marshal

func (m *SyncHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncHeight) XXX_Merge

func (m *SyncHeight) XXX_Merge(src proto.Message)

func (*SyncHeight) XXX_Size

func (m *SyncHeight) XXX_Size() int

func (*SyncHeight) XXX_Unmarshal

func (m *SyncHeight) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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