| Age | Commit message (Collapse) | Author |
|
Document Record, Open, CreateSchema, ResetRecords, ImportFromDir, LoadRecords
in storage; Reporter and reporters in goprecords; Fields and Parse in
recordline; Config and Run in daemon.
Made-with: Cursor
|
|
- CreateKey: avoid shadowing named return err on rand.Read
- daemon Run: rename slog logger to slogLog vs stdlib log package
- version: rename Version to Tag to avoid version.Version stutter
- LoadRecords: COUNT(*) then make slice with capacity
Made-with: Cursor
|
|
Decouple Aggregator and ImportFromDir from direct os.Open by routing
through io/fs: NewAggregatorFS, ImportFromFS, recordsdir.ListNonEmptyFilesFS.
NewAggregator and ImportFromDir wrap os.DirFS for backward compatibility.
Add fstest.MapFS tests for recordsdir, aggregate, and ImportFromFS.
Made-with: Cursor
|
|
Extract ListNonEmptyFiles and HostFromFileName into internal/recordsdir
for aggregate and storage ImportFromDir. Behavior unchanged.
Made-with: Cursor
|
|
Call db.PingContext in storage.Open and authkeys.OpenStore; close DB and
return wrapped errors on failure. Add tests for canceled context and
invalid directory path.
Made-with: Cursor
|
|
Deduplicate parseRecordLine from goprecords and storage; shared
recordline.Parse with Fields type. Tests live in recordline package;
DB import path still covered by goprecords TestImportFromDir.
Made-with: Cursor
|
|
|
|
|