khepri_utils (khepri v0.6.0)

Link to this section Summary

Link to this section Functions

Link to this function

clear_list_of_modules_to_skip()

Link to this function

display_tree(Tree)

-spec display_tree(display_tree()) -> ok.
Link to this function

display_tree(Tree, Options)

Link to this function

display_tree(_, Prefix, Options)

Link to this function

end_timeout_window(Timeout, T0)

-spec end_timeout_window(Timeout, Timestamp | none) -> Timeout
                      when Timeout :: timeout(), Timestamp :: integer().
Link to this function

flat_struct_to_tree(NodePropsMap)

-spec flat_struct_to_tree(NodePropsMap) -> DisplayTree
                       when
                           NodePropsMap :: khepri_adv:node_props_map(),
                           DisplayTree :: display_tree().
Link to this function

flat_struct_to_tree(NodePropsMap, MapFun)

-spec flat_struct_to_tree(NodePropsMap, MapFun) -> DisplayTree
                       when
                           NodePropsMap :: khepri_adv:node_props_map(),
                           MapFun :: fun((khepri:node_props()) -> khepri:node_props()),
                           DisplayTree :: display_tree().
Link to this function

format_exception(Class, Reason, Stacktrace, Options)

Link to this function

init_list_of_modules_to_skip()

Link to this function

is_ra_server_alive(RaServer)

-spec is_ra_server_alive(RaServer) -> IsAlive when RaServer :: ra:server_id(), IsAlive :: boolean().
Link to this function

node_props_to_payload(NodeProps, Default)

Link to this function

should_collect_code_for_module(Module)

Link to this function

sleep(Time, Timeout)

-spec sleep(Time, Timeout) -> Timeout when Time :: non_neg_integer(), Timeout :: timeout().
Link to this function

start_timeout_window(Timeout)

-spec start_timeout_window(Timeout) -> Timestamp | none
                        when Timeout :: timeout(), Timestamp :: integer().