diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-08 12:59:28 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-08 12:59:28 +0300 |
commit | 01a2c9fe1202f88f20a5acbc729b627ce0ac3c0a (patch) | |
tree | 4aba0e94650d1311ab5b2da0e74563b1bd02a876 /src/ejabberd_config.erl | |
parent | LOG_PATH macro should be of string type (diff) |
Add type specs for Module:opt_type/1
Diffstat (limited to 'src/ejabberd_config.erl')
-rw-r--r-- | src/ejabberd_config.erl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl index 1ad76caf..158ef86a 100644 --- a/src/ejabberd_config.erl +++ b/src/ejabberd_config.erl @@ -1362,6 +1362,23 @@ emit_deprecation_warning(Module, NewModule) -> now_to_seconds({MegaSecs, Secs, _MicroSecs}) -> MegaSecs * 1000000 + Secs. +-spec opt_type(hide_sensitive_log_data) -> fun((boolean()) -> boolean()); + (hosts) -> fun(([binary()]) -> [binary()]); + (language) -> fun((binary()) -> binary()); + (max_fsm_queue) -> fun((pos_integer()) -> pos_integer()); + (default_db) -> fun((atom()) -> atom()); + (default_ram_db) -> fun((atom()) -> atom()); + (loglevel) -> fun((0..5) -> 0..5); + (queue_dir) -> fun((binary()) -> binary()); + (queue_type) -> fun((ram | file) -> ram | file); + (use_cache) -> fun((boolean()) -> boolean()); + (cache_size) -> fun((timeout()) -> timeout()); + (cache_missed) -> fun((boolean()) -> boolean()); + (cache_life_time) -> fun((timeout()) -> timeout()); + (domain_certfile) -> fun((binary()) -> binary()); + (shared_key) -> fun((binary()) -> binary()); + (node_start) -> fun((non_neg_integer()) -> non_neg_integer()); + (atom()) -> [atom()]. opt_type(hide_sensitive_log_data) -> fun (H) when is_boolean(H) -> H end; opt_type(hosts) -> |