25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-02 16:37:52 +01:00
xmpp.chapril.org-ejabberd/src/mod_push_keepalive_opt.erl
2019-06-14 12:33:26 +03:00

28 lines
954 B
Erlang

%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_push_keepalive_opt).
-export([resume_timeout/1]).
-export([wake_on_start/1]).
-export([wake_on_timeout/1]).
-spec resume_timeout(gen_mod:opts() | global | binary()) -> non_neg_integer().
resume_timeout(Opts) when is_map(Opts) ->
gen_mod:get_opt(resume_timeout, Opts);
resume_timeout(Host) ->
gen_mod:get_module_opt(Host, mod_push_keepalive, resume_timeout).
-spec wake_on_start(gen_mod:opts() | global | binary()) -> boolean().
wake_on_start(Opts) when is_map(Opts) ->
gen_mod:get_opt(wake_on_start, Opts);
wake_on_start(Host) ->
gen_mod:get_module_opt(Host, mod_push_keepalive, wake_on_start).
-spec wake_on_timeout(gen_mod:opts() | global | binary()) -> boolean().
wake_on_timeout(Opts) when is_map(Opts) ->
gen_mod:get_opt(wake_on_timeout, Opts);
wake_on_timeout(Host) ->
gen_mod:get_module_opt(Host, mod_push_keepalive, wake_on_timeout).