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

Link to this section Summary

Link to this section Types

@type app() :: atom()
@type optional_callbacks() ::
  {:ok, ref(), registerd_info()} | {:error, ref(), reason()}
@type reason() :: map() | String.t()
@type ref() :: :on_change_dependency
@type registerd_info() :: MishkaInstaller.PluginState.t()
@type state() :: %MishkaInstaller.Reference.OnChangeDependency{
  app: app(),
  status: state()
}
@type status() :: :add | :force_update
@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()