A single mutation event in the Concord change stream.
Events are produced by the state machine on every mutating command and dispatched to watchers via the Sync Dispatcher.
Fields
type—:putor:deletekey— the affected keyrevision— cluster revision of this eventrecord— the new%Record{}for:put, or tombstone for:deleteprev_record— the previous%Record{}(if available), ornil
Summary
Types
@type event_type() :: :put | :delete
@type t() :: %Concord.Sync.Event{ key: binary(), prev_record: Concord.KV.Record.t() | nil, record: Concord.KV.Record.t() | nil, revision: non_neg_integer(), type: event_type() }