mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-02 21:17:12 +02:00
mod_http_upload*: Add function specifications
This commit is contained in:
parent
0282cf64a0
commit
b2855d63a7
|
@ -217,6 +217,8 @@ mod_opt_type(thumbnail) ->
|
||||||
false
|
false
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
-spec mod_options(binary()) -> [{atom(), any()}].
|
||||||
|
|
||||||
mod_options(_Host) ->
|
mod_options(_Host) ->
|
||||||
[{host, <<"upload.@HOST@">>},
|
[{host, <<"upload.@HOST@">>},
|
||||||
{hosts, []},
|
{hosts, []},
|
||||||
|
|
|
@ -92,6 +92,8 @@ mod_opt_type(max_days) ->
|
||||||
(infinity) -> infinity
|
(infinity) -> infinity
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
-spec mod_options(binary()) -> [{atom(), any()}].
|
||||||
|
|
||||||
mod_options(_) ->
|
mod_options(_) ->
|
||||||
[{access_soft_quota, soft_upload_quota},
|
[{access_soft_quota, soft_upload_quota},
|
||||||
{access_hard_quota, hard_upload_quota},
|
{access_hard_quota, hard_upload_quota},
|
||||||
|
@ -106,6 +108,8 @@ depends(_Host, _Opts) ->
|
||||||
%% gen_server callbacks.
|
%% gen_server callbacks.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
|
-spec init(list()) -> {ok, state()}.
|
||||||
|
|
||||||
init([ServerHost, Opts]) ->
|
init([ServerHost, Opts]) ->
|
||||||
process_flag(trap_exit, true),
|
process_flag(trap_exit, true),
|
||||||
AccessSoftQuota = gen_mod:get_opt(access_soft_quota, Opts),
|
AccessSoftQuota = gen_mod:get_opt(access_soft_quota, Opts),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user