statesync

package
v0.0.0-...-5f4adf5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ChunkRequest

type ChunkRequest struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
	Index  uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
}

func (*ChunkRequest) Descriptor

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

func (*ChunkRequest) GetFormat

func (m *ChunkRequest) GetFormat() uint32

func (*ChunkRequest) GetHeight

func (m *ChunkRequest) GetHeight() uint64

func (*ChunkRequest) GetIndex

func (m *ChunkRequest) GetIndex() uint32

func (*ChunkRequest) Marshal

func (m *ChunkRequest) Marshal() (dAtA []byte, err error)

func (*ChunkRequest) MarshalTo

func (m *ChunkRequest) MarshalTo(dAtA []byte) (int, error)

func (*ChunkRequest) MarshalToSizedBuffer

func (m *ChunkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChunkRequest) ProtoMessage

func (*ChunkRequest) ProtoMessage()

func (*ChunkRequest) Reset

func (m *ChunkRequest) Reset()

func (*ChunkRequest) Size

func (m *ChunkRequest) Size() (n int)

func (*ChunkRequest) String

func (m *ChunkRequest) String() string

func (*ChunkRequest) Unmarshal

func (m *ChunkRequest) Unmarshal(dAtA []byte) error

func (*ChunkRequest) Wrap

func (m *ChunkRequest) Wrap() proto.Message

func (*ChunkRequest) XXX_DiscardUnknown

func (m *ChunkRequest) XXX_DiscardUnknown()

func (*ChunkRequest) XXX_Marshal

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

func (*ChunkRequest) XXX_Merge

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

func (*ChunkRequest) XXX_Size

func (m *ChunkRequest) XXX_Size() int

func (*ChunkRequest) XXX_Unmarshal

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

type ChunkResponse

type ChunkResponse struct {
	Height  uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Format  uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
	Index   uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	Chunk   []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"`
	Missing bool   `protobuf:"varint,5,opt,name=missing,proto3" json:"missing,omitempty"`
}

func (*ChunkResponse) Descriptor

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

func (*ChunkResponse) GetChunk

func (m *ChunkResponse) GetChunk() []byte

func (*ChunkResponse) GetFormat

func (m *ChunkResponse) GetFormat() uint32

func (*ChunkResponse) GetHeight

func (m *ChunkResponse) GetHeight() uint64

func (*ChunkResponse) GetIndex

func (m *ChunkResponse) GetIndex() uint32

func (*ChunkResponse) GetMissing

func (m *ChunkResponse) GetMissing() bool

func (*ChunkResponse) Marshal

func (m *ChunkResponse) Marshal() (dAtA []byte, err error)

func (*ChunkResponse) MarshalTo

func (m *ChunkResponse) MarshalTo(dAtA []byte) (int, error)

func (*ChunkResponse) MarshalToSizedBuffer

func (m *ChunkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChunkResponse) ProtoMessage

func (*ChunkResponse) ProtoMessage()

func (*ChunkResponse) Reset

func (m *ChunkResponse) Reset()

func (*ChunkResponse) Size

func (m *ChunkResponse) Size() (n int)

func (*ChunkResponse) String

func (m *ChunkResponse) String() string

func (*ChunkResponse) Unmarshal

func (m *ChunkResponse) Unmarshal(dAtA []byte) error

func (*ChunkResponse) Wrap

func (m *ChunkResponse) Wrap() proto.Message

func (*ChunkResponse) XXX_DiscardUnknown

func (m *ChunkResponse) XXX_DiscardUnknown()

func (*ChunkResponse) XXX_Marshal

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

func (*ChunkResponse) XXX_Merge

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

func (*ChunkResponse) XXX_Size

func (m *ChunkResponse) XXX_Size() int

func (*ChunkResponse) XXX_Unmarshal

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

type Message

type Message struct {
	// Types that are valid to be assigned to Sum:
	//
	//	*Message_SnapshotsRequest
	//	*Message_SnapshotsResponse
	//	*Message_ChunkRequest
	//	*Message_ChunkResponse
	Sum isMessage_Sum `protobuf_oneof:"sum"`
}

func (*Message) Descriptor

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

func (*Message) GetChunkRequest

func (m *Message) GetChunkRequest() *ChunkRequest

func (*Message) GetChunkResponse

func (m *Message) GetChunkResponse() *ChunkResponse

func (*Message) GetSnapshotsRequest

func (m *Message) GetSnapshotsRequest() *SnapshotsRequest

func (*Message) GetSnapshotsResponse

func (m *Message) GetSnapshotsResponse() *SnapshotsResponse

func (*Message) GetSum

func (m *Message) GetSum() isMessage_Sum

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) Unwrap

func (m *Message) Unwrap() (proto.Message, error)

Unwrap implements the p2p Wrapper interface and unwraps a wrapped state sync proto message.

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_OneofWrappers

func (*Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type Message_ChunkRequest

type Message_ChunkRequest struct {
	ChunkRequest *ChunkRequest `protobuf:"bytes,3,opt,name=chunk_request,json=chunkRequest,proto3,oneof" json:"chunk_request,omitempty"`
}

func (*Message_ChunkRequest) MarshalTo

func (m *Message_ChunkRequest) MarshalTo(dAtA []byte) (int, error)

func (*Message_ChunkRequest) MarshalToSizedBuffer

func (m *Message_ChunkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_ChunkRequest) Size

func (m *Message_ChunkRequest) Size() (n int)

type Message_ChunkResponse

type Message_ChunkResponse struct {
	ChunkResponse *ChunkResponse `protobuf:"bytes,4,opt,name=chunk_response,json=chunkResponse,proto3,oneof" json:"chunk_response,omitempty"`
}

func (*Message_ChunkResponse) MarshalTo

func (m *Message_ChunkResponse) MarshalTo(dAtA []byte) (int, error)

func (*Message_ChunkResponse) MarshalToSizedBuffer

func (m *Message_ChunkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_ChunkResponse) Size

func (m *Message_ChunkResponse) Size() (n int)

type Message_SnapshotsRequest

type Message_SnapshotsRequest struct {
	SnapshotsRequest *SnapshotsRequest `protobuf:"bytes,1,opt,name=snapshots_request,json=snapshotsRequest,proto3,oneof" json:"snapshots_request,omitempty"`
}

func (*Message_SnapshotsRequest) MarshalTo

func (m *Message_SnapshotsRequest) MarshalTo(dAtA []byte) (int, error)

func (*Message_SnapshotsRequest) MarshalToSizedBuffer

func (m *Message_SnapshotsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_SnapshotsRequest) Size

func (m *Message_SnapshotsRequest) Size() (n int)

type Message_SnapshotsResponse

type Message_SnapshotsResponse struct {
	SnapshotsResponse *SnapshotsResponse `protobuf:"bytes,2,opt,name=snapshots_response,json=snapshotsResponse,proto3,oneof" json:"snapshots_response,omitempty"`
}

func (*Message_SnapshotsResponse) MarshalTo

func (m *Message_SnapshotsResponse) MarshalTo(dAtA []byte) (int, error)

func (*Message_SnapshotsResponse) MarshalToSizedBuffer

func (m *Message_SnapshotsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_SnapshotsResponse) Size

func (m *Message_SnapshotsResponse) Size() (n int)

type SnapshotsRequest

type SnapshotsRequest struct {
}

func (*SnapshotsRequest) Descriptor

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

func (*SnapshotsRequest) Marshal

func (m *SnapshotsRequest) Marshal() (dAtA []byte, err error)

func (*SnapshotsRequest) MarshalTo

func (m *SnapshotsRequest) MarshalTo(dAtA []byte) (int, error)

func (*SnapshotsRequest) MarshalToSizedBuffer

func (m *SnapshotsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotsRequest) ProtoMessage

func (*SnapshotsRequest) ProtoMessage()

func (*SnapshotsRequest) Reset

func (m *SnapshotsRequest) Reset()

func (*SnapshotsRequest) Size

func (m *SnapshotsRequest) Size() (n int)

func (*SnapshotsRequest) String

func (m *SnapshotsRequest) String() string

func (*SnapshotsRequest) Unmarshal

func (m *SnapshotsRequest) Unmarshal(dAtA []byte) error

func (*SnapshotsRequest) Wrap

func (m *SnapshotsRequest) Wrap() proto.Message

func (*SnapshotsRequest) XXX_DiscardUnknown

func (m *SnapshotsRequest) XXX_DiscardUnknown()

func (*SnapshotsRequest) XXX_Marshal

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

func (*SnapshotsRequest) XXX_Merge

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

func (*SnapshotsRequest) XXX_Size

func (m *SnapshotsRequest) XXX_Size() int

func (*SnapshotsRequest) XXX_Unmarshal

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

type SnapshotsResponse

type SnapshotsResponse struct {
	Height   uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Format   uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
	Chunks   uint32 `protobuf:"varint,3,opt,name=chunks,proto3" json:"chunks,omitempty"`
	Hash     []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func (*SnapshotsResponse) Descriptor

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

func (*SnapshotsResponse) GetChunks

func (m *SnapshotsResponse) GetChunks() uint32

func (*SnapshotsResponse) GetFormat

func (m *SnapshotsResponse) GetFormat() uint32

func (*SnapshotsResponse) GetHash

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

func (*SnapshotsResponse) GetHeight

func (m *SnapshotsResponse) GetHeight() uint64

func (*SnapshotsResponse) GetMetadata

func (m *SnapshotsResponse) GetMetadata() []byte

func (*SnapshotsResponse) Marshal

func (m *SnapshotsResponse) Marshal() (dAtA []byte, err error)

func (*SnapshotsResponse) MarshalTo

func (m *SnapshotsResponse) MarshalTo(dAtA []byte) (int, error)

func (*SnapshotsResponse) MarshalToSizedBuffer

func (m *SnapshotsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotsResponse) ProtoMessage

func (*SnapshotsResponse) ProtoMessage()

func (*SnapshotsResponse) Reset

func (m *SnapshotsResponse) Reset()

func (*SnapshotsResponse) Size

func (m *SnapshotsResponse) Size() (n int)

func (*SnapshotsResponse) String

func (m *SnapshotsResponse) String() string

func (*SnapshotsResponse) Unmarshal

func (m *SnapshotsResponse) Unmarshal(dAtA []byte) error

func (*SnapshotsResponse) Wrap

func (m *SnapshotsResponse) Wrap() proto.Message

func (*SnapshotsResponse) XXX_DiscardUnknown

func (m *SnapshotsResponse) XXX_DiscardUnknown()

func (*SnapshotsResponse) XXX_Marshal

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

func (*SnapshotsResponse) XXX_Merge

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

func (*SnapshotsResponse) XXX_Size

func (m *SnapshotsResponse) XXX_Size() int

func (*SnapshotsResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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