Helios v0.1.0 Helios.EventJournal.Messages.EventData View Source

Holds metadata and event data of emitted event.

Use this structure when you want to store event in event journal.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Helios.EventJournal.Messages.EventData{
  data: struct() | map(),
  id: String.t(),
  metadata: nil | map(),
  type: String.t()
}

Link to this section Functions

Link to this function new(id, type, data, metadata \\ %{}) View Source

Creates new EventData