Skip to main content

Module materialize

Module materialize 

Source
Expand description

Deterministic replay of the levi event log into materialized state.

myko applies events in arrival order; levi guarantees the spec’s LWW ordering — created_at, ties broken by event id — by sorting every record with that key before replay. Event id = git blob OID of the event’s CBOR bytes, so ordering is identical on every node (spec: “Clock skew”).

Structs§

EventRecord
One event as stored in the ref: id is the git blob OID (hex) of the CBOR bytes, event the decoded myko wire event.
World
Materialized state of one project’s event log.

Functions§

materialize