Documentation ¶
Index ¶
- Variables
- type BlockBatch
- func (*BlockBatch) Descriptor() ([]byte, []int)
- func (m *BlockBatch) GetBatches() []*common.Block
- func (m *BlockBatch) Marshal() (dAtA []byte, err error)
- func (m *BlockBatch) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockBatch) ProtoMessage()
- func (m *BlockBatch) Reset()
- func (m *BlockBatch) Size() (n int)
- func (m *BlockBatch) String() string
- func (m *BlockBatch) Unmarshal(dAtA []byte) error
- func (m *BlockBatch) XXX_DiscardUnknown()
- func (m *BlockBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockBatch) XXX_Merge(src proto.Message)
- func (m *BlockBatch) XXX_Size() int
- func (m *BlockBatch) XXX_Unmarshal(b []byte) error
- type BlockHeightBCM
- func (*BlockHeightBCM) Descriptor() ([]byte, []int)
- func (m *BlockHeightBCM) GetArchivedHeight() uint64
- func (m *BlockHeightBCM) GetBlockHeight() uint64
- func (m *BlockHeightBCM) Marshal() (dAtA []byte, err error)
- func (m *BlockHeightBCM) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockHeightBCM) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockHeightBCM) ProtoMessage()
- func (m *BlockHeightBCM) Reset()
- func (m *BlockHeightBCM) Size() (n int)
- func (m *BlockHeightBCM) String() string
- func (m *BlockHeightBCM) Unmarshal(dAtA []byte) error
- func (m *BlockHeightBCM) XXX_DiscardUnknown()
- func (m *BlockHeightBCM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockHeightBCM) XXX_Merge(src proto.Message)
- func (m *BlockHeightBCM) XXX_Size() int
- func (m *BlockHeightBCM) XXX_Unmarshal(b []byte) error
- type BlockInfoBatch
- func (*BlockInfoBatch) Descriptor() ([]byte, []int)
- func (m *BlockInfoBatch) GetBatch() []*common.BlockInfo
- func (m *BlockInfoBatch) Marshal() (dAtA []byte, err error)
- func (m *BlockInfoBatch) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockInfoBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockInfoBatch) ProtoMessage()
- func (m *BlockInfoBatch) Reset()
- func (m *BlockInfoBatch) Size() (n int)
- func (m *BlockInfoBatch) String() string
- func (m *BlockInfoBatch) Unmarshal(dAtA []byte) error
- func (m *BlockInfoBatch) XXX_DiscardUnknown()
- func (m *BlockInfoBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockInfoBatch) XXX_Merge(src proto.Message)
- func (m *BlockInfoBatch) XXX_Size() int
- func (m *BlockInfoBatch) XXX_Unmarshal(b []byte) error
- type BlockSyncReq
- func (*BlockSyncReq) Descriptor() ([]byte, []int)
- func (m *BlockSyncReq) GetBatchSize() uint64
- func (m *BlockSyncReq) GetBlockHeight() uint64
- func (m *BlockSyncReq) GetWithRwset() bool
- func (m *BlockSyncReq) Marshal() (dAtA []byte, err error)
- func (m *BlockSyncReq) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockSyncReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockSyncReq) ProtoMessage()
- func (m *BlockSyncReq) Reset()
- func (m *BlockSyncReq) Size() (n int)
- func (m *BlockSyncReq) String() string
- func (m *BlockSyncReq) Unmarshal(dAtA []byte) error
- func (m *BlockSyncReq) XXX_DiscardUnknown()
- func (m *BlockSyncReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockSyncReq) XXX_Merge(src proto.Message)
- func (m *BlockSyncReq) XXX_Size() int
- func (m *BlockSyncReq) XXX_Unmarshal(b []byte) error
- type SyncBlockBatch
- func (*SyncBlockBatch) Descriptor() ([]byte, []int)
- func (m *SyncBlockBatch) GetBlockBatch() *BlockBatch
- func (m *SyncBlockBatch) GetBlockinfoBatch() *BlockInfoBatch
- func (m *SyncBlockBatch) GetData() isSyncBlockBatch_Data
- func (m *SyncBlockBatch) GetWithRwset() bool
- func (m *SyncBlockBatch) Marshal() (dAtA []byte, err error)
- func (m *SyncBlockBatch) MarshalTo(dAtA []byte) (int, error)
- func (m *SyncBlockBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SyncBlockBatch) ProtoMessage()
- func (m *SyncBlockBatch) Reset()
- func (m *SyncBlockBatch) Size() (n int)
- func (m *SyncBlockBatch) String() string
- func (m *SyncBlockBatch) Unmarshal(dAtA []byte) error
- func (m *SyncBlockBatch) XXX_DiscardUnknown()
- func (m *SyncBlockBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncBlockBatch) XXX_Merge(src proto.Message)
- func (*SyncBlockBatch) XXX_OneofWrappers() []interface{}
- func (m *SyncBlockBatch) XXX_Size() int
- func (m *SyncBlockBatch) XXX_Unmarshal(b []byte) error
- type SyncBlockBatch_BlockBatch
- type SyncBlockBatch_BlockinfoBatch
- type SyncMsg
- func (*SyncMsg) Descriptor() ([]byte, []int)
- func (m *SyncMsg) GetPayload() []byte
- func (m *SyncMsg) GetType() SyncMsg_MsgType
- func (m *SyncMsg) Marshal() (dAtA []byte, err error)
- func (m *SyncMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *SyncMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SyncMsg) ProtoMessage()
- func (m *SyncMsg) Reset()
- func (m *SyncMsg) Size() (n int)
- func (m *SyncMsg) String() string
- func (m *SyncMsg) Unmarshal(dAtA []byte) error
- func (m *SyncMsg) XXX_DiscardUnknown()
- func (m *SyncMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncMsg) XXX_Merge(src proto.Message)
- func (m *SyncMsg) XXX_Size() int
- func (m *SyncMsg) XXX_Unmarshal(b []byte) error
- type SyncMsg_MsgType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthSync = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSync = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSync = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
This section is empty.
Types ¶
type BlockBatch ¶
type BlockBatch struct {
Batches []*common.Block `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"`
}
batch blocks
func (*BlockBatch) Descriptor ¶
func (*BlockBatch) Descriptor() ([]byte, []int)
func (*BlockBatch) GetBatches ¶
func (m *BlockBatch) GetBatches() []*common.Block
func (*BlockBatch) Marshal ¶
func (m *BlockBatch) Marshal() (dAtA []byte, err error)
func (*BlockBatch) MarshalTo ¶
func (m *BlockBatch) MarshalTo(dAtA []byte) (int, error)
func (*BlockBatch) MarshalToSizedBuffer ¶
func (m *BlockBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockBatch) ProtoMessage ¶
func (*BlockBatch) ProtoMessage()
func (*BlockBatch) Reset ¶
func (m *BlockBatch) Reset()
func (*BlockBatch) Size ¶
func (m *BlockBatch) Size() (n int)
func (*BlockBatch) String ¶
func (m *BlockBatch) String() string
func (*BlockBatch) Unmarshal ¶
func (m *BlockBatch) Unmarshal(dAtA []byte) error
func (*BlockBatch) XXX_DiscardUnknown ¶
func (m *BlockBatch) XXX_DiscardUnknown()
func (*BlockBatch) XXX_Marshal ¶
func (m *BlockBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockBatch) XXX_Merge ¶
func (m *BlockBatch) XXX_Merge(src proto.Message)
func (*BlockBatch) XXX_Size ¶
func (m *BlockBatch) XXX_Size() int
func (*BlockBatch) XXX_Unmarshal ¶
func (m *BlockBatch) XXX_Unmarshal(b []byte) error
type BlockHeightBCM ¶
type BlockHeightBCM struct { BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` ArchivedHeight uint64 `protobuf:"varint,2,opt,name=archived_height,json=archivedHeight,proto3" json:"archived_height,omitempty"` }
response message for node status
func (*BlockHeightBCM) Descriptor ¶
func (*BlockHeightBCM) Descriptor() ([]byte, []int)
func (*BlockHeightBCM) GetArchivedHeight ¶
func (m *BlockHeightBCM) GetArchivedHeight() uint64
func (*BlockHeightBCM) GetBlockHeight ¶
func (m *BlockHeightBCM) GetBlockHeight() uint64
func (*BlockHeightBCM) Marshal ¶
func (m *BlockHeightBCM) Marshal() (dAtA []byte, err error)
func (*BlockHeightBCM) MarshalTo ¶
func (m *BlockHeightBCM) MarshalTo(dAtA []byte) (int, error)
func (*BlockHeightBCM) MarshalToSizedBuffer ¶
func (m *BlockHeightBCM) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockHeightBCM) ProtoMessage ¶
func (*BlockHeightBCM) ProtoMessage()
func (*BlockHeightBCM) Reset ¶
func (m *BlockHeightBCM) Reset()
func (*BlockHeightBCM) Size ¶
func (m *BlockHeightBCM) Size() (n int)
func (*BlockHeightBCM) String ¶
func (m *BlockHeightBCM) String() string
func (*BlockHeightBCM) Unmarshal ¶
func (m *BlockHeightBCM) Unmarshal(dAtA []byte) error
func (*BlockHeightBCM) XXX_DiscardUnknown ¶
func (m *BlockHeightBCM) XXX_DiscardUnknown()
func (*BlockHeightBCM) XXX_Marshal ¶
func (m *BlockHeightBCM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeightBCM) XXX_Merge ¶
func (m *BlockHeightBCM) XXX_Merge(src proto.Message)
func (*BlockHeightBCM) XXX_Size ¶
func (m *BlockHeightBCM) XXX_Size() int
func (*BlockHeightBCM) XXX_Unmarshal ¶
func (m *BlockHeightBCM) XXX_Unmarshal(b []byte) error
type BlockInfoBatch ¶
type BlockInfoBatch struct {
Batch []*common.BlockInfo `protobuf:"bytes,1,rep,name=batch,proto3" json:"batch,omitempty"`
}
information of batch blocks
func (*BlockInfoBatch) Descriptor ¶
func (*BlockInfoBatch) Descriptor() ([]byte, []int)
func (*BlockInfoBatch) GetBatch ¶
func (m *BlockInfoBatch) GetBatch() []*common.BlockInfo
func (*BlockInfoBatch) Marshal ¶
func (m *BlockInfoBatch) Marshal() (dAtA []byte, err error)
func (*BlockInfoBatch) MarshalTo ¶
func (m *BlockInfoBatch) MarshalTo(dAtA []byte) (int, error)
func (*BlockInfoBatch) MarshalToSizedBuffer ¶
func (m *BlockInfoBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockInfoBatch) ProtoMessage ¶
func (*BlockInfoBatch) ProtoMessage()
func (*BlockInfoBatch) Reset ¶
func (m *BlockInfoBatch) Reset()
func (*BlockInfoBatch) Size ¶
func (m *BlockInfoBatch) Size() (n int)
func (*BlockInfoBatch) String ¶
func (m *BlockInfoBatch) String() string
func (*BlockInfoBatch) Unmarshal ¶
func (m *BlockInfoBatch) Unmarshal(dAtA []byte) error
func (*BlockInfoBatch) XXX_DiscardUnknown ¶
func (m *BlockInfoBatch) XXX_DiscardUnknown()
func (*BlockInfoBatch) XXX_Marshal ¶
func (m *BlockInfoBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockInfoBatch) XXX_Merge ¶
func (m *BlockInfoBatch) XXX_Merge(src proto.Message)
func (*BlockInfoBatch) XXX_Size ¶
func (m *BlockInfoBatch) XXX_Size() int
func (*BlockInfoBatch) XXX_Unmarshal ¶
func (m *BlockInfoBatch) XXX_Unmarshal(b []byte) error
type BlockSyncReq ¶
type BlockSyncReq struct { BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` BatchSize uint64 `protobuf:"varint,2,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` WithRwset bool `protobuf:"varint,3,opt,name=with_rwset,json=withRwset,proto3" json:"with_rwset,omitempty"` }
block request message
func (*BlockSyncReq) Descriptor ¶
func (*BlockSyncReq) Descriptor() ([]byte, []int)
func (*BlockSyncReq) GetBatchSize ¶
func (m *BlockSyncReq) GetBatchSize() uint64
func (*BlockSyncReq) GetBlockHeight ¶
func (m *BlockSyncReq) GetBlockHeight() uint64
func (*BlockSyncReq) GetWithRwset ¶
func (m *BlockSyncReq) GetWithRwset() bool
func (*BlockSyncReq) Marshal ¶
func (m *BlockSyncReq) Marshal() (dAtA []byte, err error)
func (*BlockSyncReq) MarshalTo ¶
func (m *BlockSyncReq) MarshalTo(dAtA []byte) (int, error)
func (*BlockSyncReq) MarshalToSizedBuffer ¶
func (m *BlockSyncReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockSyncReq) ProtoMessage ¶
func (*BlockSyncReq) ProtoMessage()
func (*BlockSyncReq) Reset ¶
func (m *BlockSyncReq) Reset()
func (*BlockSyncReq) Size ¶
func (m *BlockSyncReq) Size() (n int)
func (*BlockSyncReq) String ¶
func (m *BlockSyncReq) String() string
func (*BlockSyncReq) Unmarshal ¶
func (m *BlockSyncReq) Unmarshal(dAtA []byte) error
func (*BlockSyncReq) XXX_DiscardUnknown ¶
func (m *BlockSyncReq) XXX_DiscardUnknown()
func (*BlockSyncReq) XXX_Marshal ¶
func (m *BlockSyncReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockSyncReq) XXX_Merge ¶
func (m *BlockSyncReq) XXX_Merge(src proto.Message)
func (*BlockSyncReq) XXX_Size ¶
func (m *BlockSyncReq) XXX_Size() int
func (*BlockSyncReq) XXX_Unmarshal ¶
func (m *BlockSyncReq) XXX_Unmarshal(b []byte) error
type SyncBlockBatch ¶
type SyncBlockBatch struct { // Types that are valid to be assigned to Data: // *SyncBlockBatch_BlockBatch // *SyncBlockBatch_BlockinfoBatch Data isSyncBlockBatch_Data `protobuf_oneof:"data"` WithRwset bool `protobuf:"varint,3,opt,name=with_rwset,json=withRwset,proto3" json:"with_rwset,omitempty"` }
block response message
func (*SyncBlockBatch) Descriptor ¶
func (*SyncBlockBatch) Descriptor() ([]byte, []int)
func (*SyncBlockBatch) GetBlockBatch ¶
func (m *SyncBlockBatch) GetBlockBatch() *BlockBatch
func (*SyncBlockBatch) GetBlockinfoBatch ¶
func (m *SyncBlockBatch) GetBlockinfoBatch() *BlockInfoBatch
func (*SyncBlockBatch) GetData ¶
func (m *SyncBlockBatch) GetData() isSyncBlockBatch_Data
func (*SyncBlockBatch) GetWithRwset ¶
func (m *SyncBlockBatch) GetWithRwset() bool
func (*SyncBlockBatch) Marshal ¶
func (m *SyncBlockBatch) Marshal() (dAtA []byte, err error)
func (*SyncBlockBatch) MarshalTo ¶
func (m *SyncBlockBatch) MarshalTo(dAtA []byte) (int, error)
func (*SyncBlockBatch) MarshalToSizedBuffer ¶
func (m *SyncBlockBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SyncBlockBatch) ProtoMessage ¶
func (*SyncBlockBatch) ProtoMessage()
func (*SyncBlockBatch) Reset ¶
func (m *SyncBlockBatch) Reset()
func (*SyncBlockBatch) Size ¶
func (m *SyncBlockBatch) Size() (n int)
func (*SyncBlockBatch) String ¶
func (m *SyncBlockBatch) String() string
func (*SyncBlockBatch) Unmarshal ¶
func (m *SyncBlockBatch) Unmarshal(dAtA []byte) error
func (*SyncBlockBatch) XXX_DiscardUnknown ¶
func (m *SyncBlockBatch) XXX_DiscardUnknown()
func (*SyncBlockBatch) XXX_Marshal ¶
func (m *SyncBlockBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncBlockBatch) XXX_Merge ¶
func (m *SyncBlockBatch) XXX_Merge(src proto.Message)
func (*SyncBlockBatch) XXX_OneofWrappers ¶
func (*SyncBlockBatch) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*SyncBlockBatch) XXX_Size ¶
func (m *SyncBlockBatch) XXX_Size() int
func (*SyncBlockBatch) XXX_Unmarshal ¶
func (m *SyncBlockBatch) XXX_Unmarshal(b []byte) error
type SyncBlockBatch_BlockBatch ¶
type SyncBlockBatch_BlockBatch struct {
BlockBatch *BlockBatch `protobuf:"bytes,1,opt,name=block_batch,json=blockBatch,proto3,oneof" json:"block_batch,omitempty"`
}
func (*SyncBlockBatch_BlockBatch) MarshalTo ¶
func (m *SyncBlockBatch_BlockBatch) MarshalTo(dAtA []byte) (int, error)
func (*SyncBlockBatch_BlockBatch) MarshalToSizedBuffer ¶
func (m *SyncBlockBatch_BlockBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SyncBlockBatch_BlockBatch) Size ¶
func (m *SyncBlockBatch_BlockBatch) Size() (n int)
type SyncBlockBatch_BlockinfoBatch ¶
type SyncBlockBatch_BlockinfoBatch struct {
BlockinfoBatch *BlockInfoBatch `protobuf:"bytes,2,opt,name=blockinfo_batch,json=blockinfoBatch,proto3,oneof" json:"blockinfo_batch,omitempty"`
}
func (*SyncBlockBatch_BlockinfoBatch) MarshalTo ¶
func (m *SyncBlockBatch_BlockinfoBatch) MarshalTo(dAtA []byte) (int, error)
func (*SyncBlockBatch_BlockinfoBatch) MarshalToSizedBuffer ¶
func (m *SyncBlockBatch_BlockinfoBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SyncBlockBatch_BlockinfoBatch) Size ¶
func (m *SyncBlockBatch_BlockinfoBatch) Size() (n int)
type SyncMsg ¶
type SyncMsg struct { // sync message type Type SyncMsg_MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=sync.SyncMsg_MsgType" json:"type,omitempty"` // payload for the message Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
network message of synchronization module
func (*SyncMsg) GetType ¶
func (m *SyncMsg) GetType() SyncMsg_MsgType
func (*SyncMsg) MarshalToSizedBuffer ¶
func (*SyncMsg) XXX_Marshal ¶
type SyncMsg_MsgType ¶
type SyncMsg_MsgType int32
specific syncblockmessage types
const ( SyncMsg_NODE_STATUS_REQ SyncMsg_MsgType = 0 SyncMsg_NODE_STATUS_RESP SyncMsg_MsgType = 1 SyncMsg_BLOCK_SYNC_REQ SyncMsg_MsgType = 2 SyncMsg_BLOCK_SYNC_RESP SyncMsg_MsgType = 3 )
func (SyncMsg_MsgType) EnumDescriptor ¶
func (SyncMsg_MsgType) EnumDescriptor() ([]byte, []int)
func (SyncMsg_MsgType) String ¶
func (x SyncMsg_MsgType) String() string
Click to show internal directories.
Click to hide internal directories.