AshCommanded.Commanded.EventHandler (AshCommanded v0.1.0)

View Source

Represents a general purpose event handler in the Commanded DSL.

Event handlers respond to specific events with custom logic that can perform side effects, interact with external systems, or trigger other actions that don't necessarily update the resource state.

Summary

Types

t()

@type t() :: %AshCommanded.Commanded.EventHandler{
  action: atom() | Macro.t() | nil,
  autogenerate?: boolean(),
  events: [atom()],
  handler_name: atom() | nil,
  idempotent: boolean(),
  name: atom(),
  publish_to: atom() | String.t() | [atom() | String.t()] | nil
}