Versions in this module Expand all Collapse all v3 v3.0.0 Dec 23, 2022 Changes in this version + var ErrCRCMismatch = errors.New("walpb: crc mismatch") + var ErrIntOverflowRecord = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthRecord = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupRecord = fmt.Errorf("proto: unexpected end of group") + func ValidateSnapshotForWrite(e *Snapshot) error + type Record struct + Crc uint32 + Data []byte + Type int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Record) Descriptor() ([]byte, []int) + func (*Record) ProtoMessage() + func (m *Record) Marshal() (dAtA []byte, err error) + func (m *Record) MarshalTo(dAtA []byte) (int, error) + func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Record) Reset() + func (m *Record) Size() (n int) + func (m *Record) String() string + func (m *Record) Unmarshal(dAtA []byte) error + func (m *Record) XXX_DiscardUnknown() + func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Record) XXX_Merge(src proto.Message) + func (m *Record) XXX_Size() int + func (m *Record) XXX_Unmarshal(b []byte) error + func (rec *Record) Validate(crc uint32) error + type Snapshot struct + ConfState *raftpb.ConfState + Index uint64 + Term uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Snapshot) Descriptor() ([]byte, []int) + func (*Snapshot) ProtoMessage() + 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