Eventful.Transit protocol (eventful v3.2.2)

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

perform(resource, actor, event_name, options \\ [])

@spec perform(struct(), struct(), binary(), Keyword.t()) ::
  {:ok, %Eventful.Transition{event: term(), resource: term(), trigger: term()}}
  | {:error, %Eventful.Error{code: term(), data: term(), message: term()}}