Ex4pm.Engine behaviour (ex4pm v26.9.9)

Copy Markdown View Source

DfCM engine behaviour: implementations are candidates, not ambient authority.

Summary

Callbacks

available?(keyword)

@callback available?(keyword()) :: boolean()

execute(atom, term, keyword)

@callback execute(atom(), term(), keyword()) ::
  {:ok, Ex4pm.Engine.Result.t()} | {:error, term()}

id()

@callback id() :: atom()

supports?(atom, keyword)

@callback supports?(atom(), keyword()) :: boolean()

Functions

candidates(operation, opts \\ [])

execute(operation, subject, opts \\ [])

select(operation, opts \\ [])