AshCommanded.Commanded.Sections.EventHandlersSection (AshCommanded v0.1.0)
View SourceDefines 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
Returns the entities for the event_handlers section
Examples
iex> AshCommanded.Commanded.Sections.EventHandlersSection.entities()
[%Spark.Dsl.Entity{name: :handler, ...}]
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"
]
]