Versions in this module Expand all Collapse all v0 v0.43.1 Aug 24, 2021 Changes in this version + const CurrentFormat + var ErrChunkHashMismatch = errors.New("chunk hash verification failed") + var ErrIntOverflowSnapshot = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthSnapshot = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidMetadata = errors.New("invalid snapshot metadata") + var ErrUnexpectedEndOfGroupSnapshot = fmt.Errorf("proto: unexpected end of group") + var ErrUnknownFormat = errors.New("unknown snapshot format") + type Metadata struct + ChunkHashes [][]byte + func (*Metadata) Descriptor() ([]byte, []int) + func (*Metadata) ProtoMessage() + func (m *Metadata) GetChunkHashes() [][]byte + func (m *Metadata) Marshal() (dAtA []byte, err error) + func (m *Metadata) MarshalTo(dAtA []byte) (int, error) + func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Metadata) Reset() + func (m *Metadata) Size() (n int) + func (m *Metadata) String() string + func (m *Metadata) Unmarshal(dAtA []byte) error + func (m *Metadata) XXX_DiscardUnknown() + func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Metadata) XXX_Merge(src proto.Message) + func (m *Metadata) XXX_Size() int + func (m *Metadata) XXX_Unmarshal(b []byte) error + type Snapshot struct + Chunks uint32 + Format uint32 + Hash []byte + Height uint64 + Metadata Metadata + func SnapshotFromABCI(in *abci.Snapshot) (Snapshot, error) + func (*Snapshot) Descriptor() ([]byte, []int) + func (*Snapshot) ProtoMessage() + func (m *Snapshot) GetChunks() uint32 + func (m *Snapshot) GetFormat() uint32 + func (m *Snapshot) GetHash() []byte + func (m *Snapshot) GetHeight() uint64 + func (m *Snapshot) GetMetadata() Metadata + func (m *Snapshot) Marshal() (dAtA []byte, err error) + func (m *Snapshot) MarshalTo(dAtA []byte) (int, error) + func (m *Snapshot) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Snapshot) Reset() + func (m *Snapshot) Size() (n int) + func (m *Snapshot) String() string + func (m *Snapshot) Unmarshal(dAtA []byte) error + func (m *Snapshot) XXX_DiscardUnknown() + func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Snapshot) XXX_Merge(src proto.Message) + func (m *Snapshot) XXX_Size() int + func (m *Snapshot) XXX_Unmarshal(b []byte) error + func (s Snapshot) ToABCI() (abci.Snapshot, error) + type Snapshotter interface + Restore func(height uint64, format uint32, chunks <-chan io.ReadCloser, ...) error + Snapshot func(height uint64, format uint32) (<-chan io.ReadCloser, error)