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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_proxy65_opt).
-export([access/1]).
-export([auth_type/1]).
-export([host/1]).
-export([hostname/1]).
-export([hosts/1]).
-export([ip/1]).
-export([max_connections/1]).
-export([name/1]).
-export([port/1]).
-export([ram_db_type/1]).
-export([recbuf/1]).
-export([server_host/1]).
-export([shaper/1]).
-export([sndbuf/1]).
-export([vcard/1]).
-spec access(gen_mod:opts() | global | binary()) -> 'all' | acl:acl().
access(Opts) when is_map(Opts) ->
gen_mod:get_opt(access, Opts);
access(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, access).
-spec auth_type(gen_mod:opts() | global | binary()) -> 'anonymous' | 'plain'.
auth_type(Opts) when is_map(Opts) ->
gen_mod:get_opt(auth_type, Opts);
auth_type(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, auth_type).
-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_proxy65, host).
-spec hostname(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
hostname(Opts) when is_map(Opts) ->
gen_mod:get_opt(hostname, Opts);
hostname(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, hostname).
-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_proxy65, hosts).
-spec ip(gen_mod:opts() | global | binary()) -> 'undefined' | inet:ip_address().
ip(Opts) when is_map(Opts) ->
gen_mod:get_opt(ip, Opts);
ip(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, ip).
-spec max_connections(gen_mod:opts() | global | binary()) -> 'infinity' | pos_integer().
max_connections(Opts) when is_map(Opts) ->
gen_mod:get_opt(max_connections, Opts);
max_connections(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, max_connections).
-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_proxy65, name).
-spec port(gen_mod:opts() | global | binary()) -> 1..1114111.
port(Opts) when is_map(Opts) ->
gen_mod:get_opt(port, Opts);
port(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, port).
-spec ram_db_type(gen_mod:opts() | global | binary()) -> atom().
ram_db_type(Opts) when is_map(Opts) ->
gen_mod:get_opt(ram_db_type, Opts);
ram_db_type(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, ram_db_type).
-spec recbuf(gen_mod:opts() | global | binary()) -> pos_integer().
recbuf(Opts) when is_map(Opts) ->
gen_mod:get_opt(recbuf, Opts);
recbuf(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, recbuf).
-spec server_host(gen_mod:opts() | global | binary()) -> binary().
server_host(Opts) when is_map(Opts) ->
gen_mod:get_opt(server_host, Opts);
server_host(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, server_host).
-spec shaper(gen_mod:opts() | global | binary()) -> atom() | [ejabberd_shaper:shaper_rule()].
shaper(Opts) when is_map(Opts) ->
gen_mod:get_opt(shaper, Opts);
shaper(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, shaper).
-spec sndbuf(gen_mod:opts() | global | binary()) -> pos_integer().
sndbuf(Opts) when is_map(Opts) ->
gen_mod:get_opt(sndbuf, Opts);
sndbuf(Host) ->
gen_mod:get_module_opt(Host, mod_proxy65, sndbuf).
-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_proxy65, vcard).
|