EventJournal class

Append-only JSONL audit journal. One line per mutation; the hive boxes hold current state, this file holds the history and doubles as a human-readable recovery log.

Writes are best-effort: hive is the source of truth, so a journal failure (disk full, permissions) must never fail an operation whose data write already succeeded — that would make the caller retry and duplicate the ticket. Failures are reported through onWarn instead.

Constructors

EventJournal(File file, {void onWarn(String warning)?})

Properties

file → File
final
hashCode → int
The hash code for this object.
no setterinherited
onWarn → void Function(String warning)?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

append(String op, {String? id, Map<String, Object?>? changes}) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited