Versions in this module Expand all Collapse all v3 v3.4.16 Apr 15, 2021 Changes in this version + var ErrCRCMismatch = errors.New("wal: crc mismatch") + var ErrDecoderNotFound = errors.New("wal: decoder not found") + var ErrFileNotFound = errors.New("wal: file not found") + var ErrMaxWALEntrySizeLimitExceeded = errors.New("wal: max entry size limit exceeded") + var ErrMetadataConflict = errors.New("wal: conflicting metadata found") + var ErrSliceOutOfRange = errors.New("wal: slice bounds out of range") + var ErrSnapshotMismatch = errors.New("wal: snapshot mismatch") + var ErrSnapshotNotFound = errors.New("wal: snapshot not found") + var SegmentSizeBytes int64 = 64 * 1000 * 1000 + func Exist(dir string) bool + func Repair(lg *zap.Logger, dirpath string) bool + func ValidSnapshotEntries(lg *zap.Logger, walDir string) ([]walpb.Snapshot, error) + func Verify(lg *zap.Logger, walDir string, snap walpb.Snapshot) error + type WAL struct + func Create(lg *zap.Logger, dirpath string, metadata []byte) (*WAL, error) + func Open(lg *zap.Logger, dirpath string, snap walpb.Snapshot) (*WAL, error) + func OpenForRead(lg *zap.Logger, dirpath string, snap walpb.Snapshot) (*WAL, error) + func (w *WAL) Close() error + func (w *WAL) ReadAll() (metadata []byte, state raftpb.HardState, ents []raftpb.Entry, err error) + func (w *WAL) ReleaseLockTo(index uint64) error + func (w *WAL) Save(st raftpb.HardState, ents []raftpb.Entry) error + func (w *WAL) SaveSnapshot(e walpb.Snapshot) error + func (w *WAL) SetUnsafeNoFsync() + func (w *WAL) Sync() error v3.4.15-cyral.1 Apr 15, 2021 Other modules containing this package github.com/cyralinc/etcd