Event Queues v1.1.2 EventQueues.Event

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

Summary

Functions

Creates an event struct based upon the fields passed in

Functions

new(fields \\ [])

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.