Skip to main content

Module store

Module store 

Source
Expand description

The day files: activity-YYYY-MM-DD.jsonl in the audit folder, appended by a writer thread (the recording is queued, so the transcript’s hot path does no I/O here), and dropped when older than KEEP_DAYS.

Structs§

DayFile
A day’s file and the day it holds (YYYY-MM-DD, UTC).

Functions§

day_files
The day files in dir, newest day first. A file that is not named for a day is not listed.
install
Starts the writer for the rest of this process: rows go to dir, stamped with channel. The first call wins.
install_for_this_srv
Starts recording where the jekt audit goes: the shared audit folder, or this srv’s own while it does not use it.
record
Queues row for its day file. Nothing happens before install.