View Source MishkaInstaller.Reference.OnUserAfterSaveFailure behaviour (Mishka Installer v0.0.3)

This event is triggered whenever a user is successfully added or edited. if there is any active module in this section on state, this module sends a request as a Task tool to the developer call function that includes user_info(), ip(), endpoint(). It should be noted; This process does not interfere with the main operation of the system. It is just a sender and is active for both side endpoints.

Link to this section Summary

Link to this section Types

@type conn() :: Plug.Conn.t() | Phoenix.LiveView.Socket.t()
@type endpoint() :: :html | :api
@type error() :: map() | struct() | tuple()
@type extra() :: map() | struct() | list()
@type ip() :: String.t() | tuple()
@type modifier_user() :: <<_::288>> | :self
@type optional_callbacks() ::
  {:ok, ref(), registerd_info()} | {:error, ref(), reason()}
@type reason() :: map() | String.t()
@type ref() :: :on_user_after_save_failure
@type registerd_info() :: MishkaInstaller.PluginState.t()
@type state() :: %MishkaInstaller.Reference.OnUserAfterSaveFailure{
  conn: conn(),
  endpoint: endpoint(),
  error: error(),
  extra: extra(),
  ip: ip(),
  modifier_user: modifier_user(),
  status: status()
}
@type status() :: :added | :edited
@type t() :: state()

Link to this section Callbacks

@callback call(state()) :: {:reply, state()} | {:reply, :halt, state()}
Link to this callback

delete(registerd_info)

View Source (optional)
@callback delete(registerd_info()) :: optional_callbacks()
@callback initial(list()) :: {:ok, ref(), list()} | {:error, ref(), reason()}
Link to this callback

restart(registerd_info)

View Source (optional)
@callback restart(registerd_info()) :: optional_callbacks()
Link to this callback

start(registerd_info)

View Source (optional)
@callback start(registerd_info()) :: optional_callbacks()
Link to this callback

stop(registerd_info)

View Source (optional)
@callback stop(registerd_info()) :: optional_callbacks()
Link to this callback

unregister(registerd_info)

View Source (optional)
@callback unregister(registerd_info()) :: optional_callbacks()