Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEvents ¶
LoadEvents reads every recorder WAL file matching "ev-*.jsonl" in dir (in sorted filename order, so day-rotated files load chronologically) and decodes each newline-delimited JSON line into a model.Event. It is best-effort at two layers: a file that fails to open is skipped, and any line that fails to unmarshal is silently dropped rather than aborting the load. It is not best-effort about read failures mid-file, though: a bufio.Scanner error (e.g. a line exceeding the scanner's token buffer, or the underlying file read failing outright) is captured via scanEvents and returned here, joined (errors.Join) across every file that hit one, rather than being silently swallowed.
Types ¶
This section is empty.