Current section

Files

Jump to
eventstore lib event_store recorded_event.ex
Raw

lib/event_store/recorded_event.ex

defmodule EventStore.RecordedEvent do
@moduledoc """
RecordedEvent contains the persisted data and metadata for a single event.
Events are immutable once recorded.
"""
defstruct event_id: nil,
stream_id: nil,
stream_version: nil,
correlation_id: nil,
event_type: nil ,
data: nil,
metadata: nil,
created_at: nil
end