Packages
ejabberd
20.2.0
26.4.0
26.3.0
26.2.0
26.1.0
25.10.0
25.8.0
25.7.0
25.4.0
25.3.0
24.12.0
24.10.0
24.7.0
24.6.0
24.2.6
23.10.0
23.4.0
23.1.0
22.10.0
22.5.0
21.12.0
21.7.0
21.4.0
21.1.0
20.12.0
20.7.0
20.4.0
20.3.0
20.2.0
20.1.0
19.9.1
19.9.0
19.8.0
19.5.0
19.2.0
18.12.1
18.12.0
18.6.0
18.4.0
18.3.0
18.1.0
17.11.0
17.9.0
17.6.0
17.3.0
17.1.0
16.12.0-beta1
16.9.0
16.8.0
16.6.2
16.6.1
16.6.0
16.4.1
16.4.0
16.3.0
16.2.0
16.1.0-beta1
Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
Current section
Files
Jump to
Current section
Files
src/mod_http_upload_opt.erl
%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_http_upload_opt).
-export([access/1]).
-export([custom_headers/1]).
-export([dir_mode/1]).
-export([docroot/1]).
-export([external_secret/1]).
-export([file_mode/1]).
-export([get_url/1]).
-export([host/1]).
-export([hosts/1]).
-export([jid_in_url/1]).
-export([max_size/1]).
-export([name/1]).
-export([put_url/1]).
-export([rm_on_unregister/1]).
-export([secret_length/1]).
-export([service_url/1]).
-export([thumbnail/1]).
-export([vcard/1]).
-spec access(gen_mod:opts() | global | binary()) -> 'local' | acl:acl().
access(Opts) when is_map(Opts) ->
gen_mod:get_opt(access, Opts);
access(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, access).
-spec custom_headers(gen_mod:opts() | global | binary()) -> [{binary(),binary()}].
custom_headers(Opts) when is_map(Opts) ->
gen_mod:get_opt(custom_headers, Opts);
custom_headers(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, custom_headers).
-spec dir_mode(gen_mod:opts() | global | binary()) -> 'undefined' | non_neg_integer().
dir_mode(Opts) when is_map(Opts) ->
gen_mod:get_opt(dir_mode, Opts);
dir_mode(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, dir_mode).
-spec docroot(gen_mod:opts() | global | binary()) -> binary().
docroot(Opts) when is_map(Opts) ->
gen_mod:get_opt(docroot, Opts);
docroot(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, docroot).
-spec external_secret(gen_mod:opts() | global | binary()) -> binary().
external_secret(Opts) when is_map(Opts) ->
gen_mod:get_opt(external_secret, Opts);
external_secret(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, external_secret).
-spec file_mode(gen_mod:opts() | global | binary()) -> 'undefined' | non_neg_integer().
file_mode(Opts) when is_map(Opts) ->
gen_mod:get_opt(file_mode, Opts);
file_mode(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, file_mode).
-spec get_url(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
get_url(Opts) when is_map(Opts) ->
gen_mod:get_opt(get_url, Opts);
get_url(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, get_url).
-spec host(gen_mod:opts() | global | binary()) -> binary().
host(Opts) when is_map(Opts) ->
gen_mod:get_opt(host, Opts);
host(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, host).
-spec hosts(gen_mod:opts() | global | binary()) -> [binary()].
hosts(Opts) when is_map(Opts) ->
gen_mod:get_opt(hosts, Opts);
hosts(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, hosts).
-spec jid_in_url(gen_mod:opts() | global | binary()) -> 'node' | 'sha1'.
jid_in_url(Opts) when is_map(Opts) ->
gen_mod:get_opt(jid_in_url, Opts);
jid_in_url(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, jid_in_url).
-spec max_size(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
max_size(Opts) when is_map(Opts) ->
gen_mod:get_opt(max_size, Opts);
max_size(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, max_size).
-spec name(gen_mod:opts() | global | binary()) -> binary().
name(Opts) when is_map(Opts) ->
gen_mod:get_opt(name, Opts);
name(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, name).
-spec put_url(gen_mod:opts() | global | binary()) -> binary().
put_url(Opts) when is_map(Opts) ->
gen_mod:get_opt(put_url, Opts);
put_url(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, put_url).
-spec rm_on_unregister(gen_mod:opts() | global | binary()) -> boolean().
rm_on_unregister(Opts) when is_map(Opts) ->
gen_mod:get_opt(rm_on_unregister, Opts);
rm_on_unregister(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, rm_on_unregister).
-spec secret_length(gen_mod:opts() | global | binary()) -> 1..1114111.
secret_length(Opts) when is_map(Opts) ->
gen_mod:get_opt(secret_length, Opts);
secret_length(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, secret_length).
-spec service_url(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
service_url(Opts) when is_map(Opts) ->
gen_mod:get_opt(service_url, Opts);
service_url(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, service_url).
-spec thumbnail(gen_mod:opts() | global | binary()) -> boolean().
thumbnail(Opts) when is_map(Opts) ->
gen_mod:get_opt(thumbnail, Opts);
thumbnail(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, thumbnail).
-spec vcard(gen_mod:opts() | global | binary()) -> 'undefined' | tuple().
vcard(Opts) when is_map(Opts) ->
gen_mod:get_opt(vcard, Opts);
vcard(Host) ->
gen_mod:get_module_opt(Host, mod_http_upload, vcard).