Current section

Files

Jump to
commanded lib commanded event_store event_data.ex
Raw

lib/commanded/event_store/event_data.ex

defmodule Commanded.EventStore.EventData do
@moduledoc """
EventData contains the data for a single event before being persisted to
storage.
"""
@type uuid :: String.t()
@type t :: %Commanded.EventStore.EventData{
causation_id: uuid(),
correlation_id: uuid(),
event_type: String.t(),
data: binary(),
metadata: binary()
}
defstruct [
:causation_id,
:correlation_id,
:event_type,
:data,
:metadata
]
end