export

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2026 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEvents

func LoadEvents(dir string) ([]model.Event, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL