# Functions
Checkpoint creates a compacted checkpoint of segments in range [first, last] in the given WAL.
CreateSegment creates a new segment k in dir.
DeleteCheckpoints deletes all checkpoints in a directory below a given index.
LastCheckpoint returns the directory name and index of the most recent checkpoint.
New returns a new WAL over the given directory.
NewLiveReader returns a new live reader.
NewLiveReaderMetrics instantiates, registers and returns metrics to be injected at LiveReader instantiation.
NewReader returns a new reader.
nolint:golint // TODO: Consider exporting segmentBufReader.
NewSegmentsRangeReader returns a new reader over the given WAL segment ranges.
NewSegmentsReader returns a new reader over all segments in the directory.
NewSize returns a new WAL over the given directory.
NewWatcher creates a new WAL watcher for a given WriteTo.
No description provided by the author
Open an existing WAL.
OpenReadSegment opens the segment with the given filename.
OpenWriteSegment opens segment k in dir.
SegmentName builds a segment name for the directory.
Segments returns the range [first, n] of currently existing segments.
# Constants
128 MB.
# Structs
CheckpointStats returns stats about a created checkpoint.
CorruptionErr is an error that's returned when corruption is encountered.
LiveReader reads WAL records from an io.Reader.
liveReaderMetrics holds all metrics exposed by the LiveReader.
Reader reads WAL records from an io.Reader.
Segment represents a segment file.
SegmentRange groups segments by the directory and the first and last index it includes.
WAL is a write ahead log that stores records in segment files.
Watcher watches the TSDB WAL for a given WriteTo.
No description provided by the author
# Interfaces
WriteTo is an interface used by the Watcher to send the samples it's read from the WAL on to somewhere else.