EventStore v0.16.0 EventStore.RecordedEvent View Source
EventStore.RecordedEvent contains the persisted data and metadata for a
single event.
Events are immutable once recorded.
Recorded event fields
event_number- position of the event within the stream. This will be identical to thestream_versionwhen fetching events from a single stream. For the$allstream it will be the globally unique and ordered event number.event_id- a globally unique UUID to identify the event.stream_uuid- the original stream identity for the event.stream_version- the original version of the stream for the event.correlation_id- an optional UUID identifier used to correlate related messages.causation_id- an optional UUID identifier used to identify which message you are responding to.data- the serialized event as binary data.metadata- the serialized event metadata as binary data.created_at- the date/time, in UTC, indicating when the event was created.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %EventStore.RecordedEvent{
causation_id: uuid() | nil,
correlation_id: uuid() | nil,
created_at: NaiveDateTime.t(),
data: term(),
event_id: uuid(),
event_number: non_neg_integer(),
event_type: String.t(),
metadata: binary() | nil,
stream_uuid: String.t(),
stream_version: non_neg_integer()
}
t() :: %EventStore.RecordedEvent{
causation_id: uuid() | nil,
correlation_id: uuid() | nil,
created_at: NaiveDateTime.t(),
data: term(),
event_id: uuid(),
event_number: non_neg_integer(),
event_type: String.t(),
metadata: binary() | nil,
stream_uuid: String.t(),
stream_version: non_neg_integer()
}
Link to this type
uuid()
View Source
uuid()
View Source
uuid() :: String.t()
uuid() :: String.t()
Link to this section Functions
Link to this function
deserialize(recorded_event, serializer) View Source
Link to this function
fetch(map, key) View Source
Link to this function