Documentation
¶
Overview ¶
Package store persists canonical OmniDevX events as daily JSONL files:
<dir>/events/YYYY/MM/DD/<product>.jsonl
Plain text keeps the store inspectable — a developer can read exactly what has been recorded about them — and reprocessable when metric formulas change. Writes are idempotent: an event whose deterministic ID already exists in its day file is skipped, so re-importing overlapping history does not duplicate.
The default root is ~/.plexusone/omnidevx/data. Files are created with owner-only permissions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Dir is the store root. Defaults to ~/.plexusone/omnidevx/data.
Dir string
}
Options configures a Store.
type Query ¶
type Query struct {
// Period filters by event timestamp (half-open, zero bounds open).
Period omnidevx.Period
// Product, when set, reads only that source product's files.
Product string
}
Query scopes a Read. A zero Query reads everything.
type ReadResult ¶
type ReadResult struct {
Events []omnidevx.Event
Diagnostics []omnidevx.Diagnostic
}
ReadResult carries events plus diagnostics for damaged lines.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store reads and writes canonical events under a root directory.
func (*Store) Read ¶
Read returns stored events matching the query, ordered by timestamp. Damaged lines become diagnostics, never silent drops.
type WriteResult ¶
WriteResult reports the outcome of a Write.