View Source MishkaInstaller.Reference.OnUserAuthorisation behaviour (Mishka Installer v0.0.4-beta.1)
This event is triggered whenever a user accesses form an authorisation. 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_id()
, entries()
, 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
Callbacks
This Callback can be used when you want to call a plugin
This Callback can be used when you want to delete a plugin
This Callback can be used when you want to register a plugin
This Callback can be used when you want to restart a plugin
This Callback can be used when you want to start a plugin
This Callback can be used when you want to stop a plugin
This Callback can be used when you want to unregister a plugin
Link to this section Types
@type conn() :: Plug.Conn.t() | Phoenix.LiveView.Socket.t()
@type endpoint() :: :html | :api
@type module_name() :: String.t()
@type operation() :: atom()
@type optional_callbacks() :: {:ok, ref(), registerd_info()} | {:error, ref(), reason()}
@type ref() :: :on_user_authorisation
@type registerd_info() :: MishkaInstaller.PluginState.t()
@type t() :: state()
@type user_id() :: <<_::288>>
Link to this section Callbacks
This Callback can be used when you want to call a plugin
@callback delete(registerd_info()) :: optional_callbacks()
This Callback can be used when you want to delete a plugin
This Callback can be used when you want to register a plugin
@callback restart(registerd_info()) :: optional_callbacks()
This Callback can be used when you want to restart a plugin
@callback start(registerd_info()) :: optional_callbacks()
This Callback can be used when you want to start a plugin
@callback stop(registerd_info()) :: optional_callbacks()
This Callback can be used when you want to stop a plugin
@callback unregister(registerd_info()) :: optional_callbacks()
This Callback can be used when you want to unregister a plugin