Module eturnal_systemd

Behaviours: gen_server.

Data Types

state()

state() = #systemd_state{socket = gen_udp:socket() | undefined, destination = inet:local_address() | undefined, interval = pos_integer() | undefined, last_ping = integer() | undefined}

watchdog_timeout()

watchdog_timeout() = pos_integer() | hibernate

Function Index

code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
ready/0
reloading/0
start_link/0
stopping/0
terminate/2

Function Details

code_change/3

code_change(OldVsn::{down, term()} | term(), State::state(), Extra::term()) -> {ok, state()}

handle_call/3

handle_call(Request::term(), From::{pid(), term()}, State::state()) -> {reply, {error, badarg}, state(), watchdog_timeout()}

handle_cast/2

handle_cast(Msg::{notify, binary()} | term(), Systemd_state::state()) -> {noreply, state(), watchdog_timeout()}

handle_info/2

handle_info(Info::timeout | term(), Systemd_state::state()) -> {noreply, state(), watchdog_timeout()}

init/1

init(Opts::any()) -> {ok, state()} | {ok, state(), watchdog_timeout()} | {error, term()}

ready/0

ready() -> ok

reloading/0

reloading() -> ok

start_link/0

start_link() -> {ok, pid()} | ignore | {error, term()}

stopping/0

stopping() -> ok

terminate/2

terminate(Reason::normal | shutdown | {shutdown, term()} | term(), Systemd_state::state()) -> ok


Generated by EDoc