ides_family (ides v0.1.0)
View SourceSummary
Types
Type definitions and tree-walking primitives for ides.
Types
-type child_process() :: #{name := string(), pid := pid(), type := worker, restart_type := child_restart_type()}.
-type child_restart_type() :: permanent | transient | temporary.
-type parent_info() :: #{sup_pid := pid(), sup_strategy := supervisor_strategy(), child_pids := [{term(), pid()}], target_position => pos_integer()}.
-type process() :: supervisor_process() | child_process().
-type supervisor_process() :: #{name := string(), pid := pid(), type := supervisor, strategy := supervisor_strategy(), restart_type => child_restart_type(), children := [process()]}.
-type supervisor_strategy() :: one_for_one | one_for_all | rest_for_one | simple_one_for_one.
Type definitions and tree-walking primitives for ides.
Functions
-spec child_position(Pid :: pid(), Children :: [{term(), pid()}]) -> pos_integer().
-spec get_restart_type(SupPid :: pid(), Id :: term()) -> child_restart_type().
-spec get_strategy(SupPid :: pid()) -> supervisor_strategy().
-spec parent_info(Pid :: pid()) -> {ok, parent_info()} | {error, term()}.