Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mod_pres_counter_opt.erl « src - github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7964fe368a5d7a50bacfcce4229c53c32933af57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%% Generated automatically
%% DO NOT EDIT: run `make options` instead

-module(mod_pres_counter_opt).

-export([count/1]).
-export([interval/1]).

-spec count(gen_mod:opts() | global | binary()) -> pos_integer().
count(Opts) when is_map(Opts) ->
    gen_mod:get_opt(count, Opts);
count(Host) ->
    gen_mod:get_module_opt(Host, mod_pres_counter, count).

-spec interval(gen_mod:opts() | global | binary()) -> pos_integer().
interval(Opts) when is_map(Opts) ->
    gen_mod:get_opt(interval, Opts);
interval(Host) ->
    gen_mod:get_module_opt(Host, mod_pres_counter, interval).