Eventful.Handler behaviour (eventful v3.0.2)

Link to this section Summary

Link to this section Callbacks

Link to this callback

call(actor, resource, event_params)

@callback call(actor :: struct(), resource :: struct(), event_params :: map()) ::
  {:ok, %Eventful.Transition{event: term(), resource: term(), trigger: term()}}
  | {:error, %Eventful.Error{code: term(), data: term(), message: term()}}