Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxRecordBytes is the largest size a single record can be. MaxRecordBytes uint32 = 100 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func CleanUnusedFiles ¶
CleanUnusedFiles cleans unused log files, i.e those that have already been applied.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner reads log records from a write ahead log directory. Not thread-safe.
func NewScanner ¶
NewScanner returns a log scanner over all the log files found in dirname. Returns ErrNotExist if there are no log files.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes log entries to the write ahead log. Thread-safe.
Click to show internal directories.
Click to hide internal directories.