Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tailer ¶
type Tailer struct {
// contains filtered or unexported fields
}
Tailer tails a write ahead log in a given directory.
func Tail ¶
Tail the prometheus/tsdb write ahead log in the given directory. Checkpoints are read before reading any WAL segments. Tailing may fail if we are racing with the DB itself in deleting obsolete checkpoints and segments. The caller should implement relevant logic to retry in those cases.
func (*Tailer) CurrentSegment ¶
CurrentSegment returns the index of the currently read segment. If no successful read has been performed yet, it may be negative.
Click to show internal directories.
Click to hide internal directories.