eidetic_projector v0.1.0-alpha1 Eidetic.Projector.Bundle

The data structure used to encapsulate the consumer meta information, event, modifiers, and result of our middleware and event handler.

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %{
  consumer_meta: %Eidetic.Projector.Bundle.ConsumerMeta{
    offset: term(),
    partition: term(),
    topic: term()
  },
  event:
    %Eidetic.Event{
      datetime: term(),
      identifier: term(),
      metadata: term(),
      payload: term(),
      serial_number: term(),
      type: term(),
      version: term()
    }
    | nil,
  modifiers: map(),
  handler: atom() | (... -> any()) | nil,
  result: {:ok | :error, any()}
}