Event Queues v3.0.0 EventQueues.Event View Source

The event queues and handlers created by this library utilize a common struct to pass events around.

Link to this section Summary

Functions

Creates an event struct based upon the fields passed in

Link to this section Functions

Creates an event struct based upon the fields passed in.

  • id - A unique id for the event. Default: UUID Version 4 value
  • category - The category or major subject this event belongs.
  • name - The name of the event.
  • source - The source this event originated. Default: self()
  • created - Date and time the event was created. Default: NaiveDateTime.utc_now
  • data - An open value that can be any valid Elixir term of your choosing.