blob: 82b1d51bb21d4c9cf12c53cc762a5f7cf5aa8e83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
%% 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).
|