diameter_lib

Types


f() = {module(), atom(), list()} | nonempty_maybe_improper_list(function(), list()) | function()

Functions


get_stacktrace() -> term()

info_report(Reason::term(), T::term()) -> true

error_report(Reason::term(), T::term()) -> false

warning_report(Reason::term(), T::term()) -> false

now() -> integer()

timestamp(MonoT::integer()) -> timestamp() (see module erlang)

now_diff(T0::integer()) -> {Hours, Mins, Secs, MicroSecs}

  • Hours = non_neg_integer()
  • Mins = 0..59
  • Secs = 0..59
  • MicroSecs = 0..999999

micro_diff(T0::integer()) -> MicroSecs

  • MicroSecs = non_neg_integer()

micro_diff(T1::integer(), T0::integer()) -> MicroSecs

  • MicroSecs = non_neg_integer()

time(Diff::non_neg_integer()) -> {Hours, Mins, Secs, MicroSecs}

  • Hours = non_neg_integer()
  • Mins = 0..59
  • Secs = 0..59
  • MicroSecs = 0..999999

seed() -> {timestamp() (see module erlang), {integer(), integer(), integer()}}

eval(Fun) -> term()

  • Fun = f() | {f()} | nonempty_maybe_improper_list(f(), list())

eval_name(X) -> term()

ipaddr(Addr::[byte()] | tuple()) -> ip_address() (see module inet) | none()

spawn_opts(X1::server | worker, Opts::list()) -> list()

wait(L::[pid() | reference()]) -> ok

fold_tuple(N, T0, T) -> tuple()

  • N = pos_integer()
  • T0 = tuple()
  • T = tuple() | undefined

fold_n(F, Acc0, N) -> term()

  • F = (non_neg_integer(), term()) -> term()
  • Acc0 = term()
  • N = non_neg_integer()

for_n(F, N) -> non_neg_integer()

  • F = (non_neg_integer()) -> term()
  • N = non_neg_integer()

log(Slogan, Mod, Line, Details) -> term()