mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Run make options
This commit is contained in:
parent
dab4c0cc10
commit
7fd0eefa30
41
src/mod_conversejs_opt.erl
Normal file
41
src/mod_conversejs_opt.erl
Normal file
@ -0,0 +1,41 @@
|
||||
%% Generated automatically
|
||||
%% DO NOT EDIT: run `make options` instead
|
||||
|
||||
-module(mod_conversejs_opt).
|
||||
|
||||
-export([bosh_service_url/1]).
|
||||
-export([conversejs_css/1]).
|
||||
-export([conversejs_script/1]).
|
||||
-export([default_domain/1]).
|
||||
-export([websocket_url/1]).
|
||||
|
||||
-spec bosh_service_url(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
|
||||
bosh_service_url(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(bosh_service_url, Opts);
|
||||
bosh_service_url(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_conversejs, bosh_service_url).
|
||||
|
||||
-spec conversejs_css(gen_mod:opts() | global | binary()) -> binary().
|
||||
conversejs_css(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(conversejs_css, Opts);
|
||||
conversejs_css(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_conversejs, conversejs_css).
|
||||
|
||||
-spec conversejs_script(gen_mod:opts() | global | binary()) -> binary().
|
||||
conversejs_script(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(conversejs_script, Opts);
|
||||
conversejs_script(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_conversejs, conversejs_script).
|
||||
|
||||
-spec default_domain(gen_mod:opts() | global | binary()) -> binary().
|
||||
default_domain(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(default_domain, Opts);
|
||||
default_domain(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_conversejs, default_domain).
|
||||
|
||||
-spec websocket_url(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
|
||||
websocket_url(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(websocket_url, Opts);
|
||||
websocket_url(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_conversejs, websocket_url).
|
||||
|
@ -11,6 +11,7 @@
|
||||
-export([hosts/1]).
|
||||
-export([ignore_pep_from_offline/1]).
|
||||
-export([last_item_cache/1]).
|
||||
-export([max_item_expire_node/1]).
|
||||
-export([max_items_node/1]).
|
||||
-export([max_nodes_discoitems/1]).
|
||||
-export([max_subscriptions_node/1]).
|
||||
@ -68,7 +69,13 @@ last_item_cache(Opts) when is_map(Opts) ->
|
||||
last_item_cache(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_pubsub, last_item_cache).
|
||||
|
||||
-spec max_items_node(gen_mod:opts() | global | binary()) -> non_neg_integer().
|
||||
-spec max_item_expire_node(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
|
||||
max_item_expire_node(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(max_item_expire_node, Opts);
|
||||
max_item_expire_node(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_pubsub, max_item_expire_node).
|
||||
|
||||
-spec max_items_node(gen_mod:opts() | global | binary()) -> 'unlimited' | non_neg_integer().
|
||||
max_items_node(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(max_items_node, Opts);
|
||||
max_items_node(Host) ->
|
||||
|
@ -6,6 +6,7 @@
|
||||
-export([access/1]).
|
||||
-export([access_from/1]).
|
||||
-export([access_remove/1]).
|
||||
-export([allow_modules/1]).
|
||||
-export([captcha_protected/1]).
|
||||
-export([ip_access/1]).
|
||||
-export([password_strength/1]).
|
||||
@ -31,6 +32,12 @@ access_remove(Opts) when is_map(Opts) ->
|
||||
access_remove(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_register, access_remove).
|
||||
|
||||
-spec allow_modules(gen_mod:opts() | global | binary()) -> 'all' | [atom()].
|
||||
allow_modules(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(allow_modules, Opts);
|
||||
allow_modules(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_register, allow_modules).
|
||||
|
||||
-spec captcha_protected(gen_mod:opts() | global | binary()) -> boolean().
|
||||
captcha_protected(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(captcha_protected, Opts);
|
||||
|
Loading…
Reference in New Issue
Block a user