IndieWeb.Microsub.Action behaviour (IndieWeb v0.0.49) View Source

Link to this section Summary

Callbacks

Defines the default action to take.

Handles the action with provided parameters.

Link to this section Callbacks

Specs

default_method() :: binary()

Defines the default action to take.

Specs

invoke(action :: binary(), params :: map()) ::
  {:ok, keyword()} | {:error, keyword()}

Handles the action with provided parameters.