AshCommanded.Commanded.Sections.EventHandlersSection (AshCommanded v0.1.0)

View Source

Defines the schema and entities for the event_handlers section of the Commanded DSL.

Event handlers are general purpose responders to events that don't necessarily update resource state but can perform side effects or other operations.

Summary

Functions

Returns the entities for the event_handlers section

Returns the schema for the event_handlers section

Functions

entities()

Returns the entities for the event_handlers section

Examples

iex> AshCommanded.Commanded.Sections.EventHandlersSection.entities()
[%Spark.Dsl.Entity{name: :handler, ...}]

schema()

Returns the schema for the event_handlers section

Examples

iex> AshCommanded.Commanded.Sections.EventHandlersSection.schema()
[
  event_handlers: [
    type: {:list, :any},
    default: [],
    doc: "The handlers that respond to events without necessarily updating resource state"
  ]
]