Documentation
¶
Overview ¶
Package ledger records what workers and producers did, one JSON object per line, so the invariant and chaos tests can check it against the database. Each record is written with a single write call on an O_APPEND file: a process killed with SIGKILL loses at most the record it was writing, never one already written (the data is in the kernel's page cache).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enqueued ¶
func ReadEnqueued ¶
type Run ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func Open ¶
Open appends to path, creating it if needed. If a killed process left a torn last line (no trailing newline), Open ends that line first, so the next record starts on its own line instead of being glued onto the fragment.
Click to show internal directories.
Click to hide internal directories.