1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00
ejabberd/src/mod_matrix_gw_opt.erl
2024-09-16 17:50:38 +02:00

41 lines
1.3 KiB
Erlang

%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_matrix_gw_opt).
-export([host/1]).
-export([key/1]).
-export([key_name/1]).
-export([matrix_domain/1]).
-export([matrix_id_as_jid/1]).
-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_matrix_gw, host).
-spec key(gen_mod:opts() | global | binary()) -> {binary(),binary()}.
key(Opts) when is_map(Opts) ->
gen_mod:get_opt(key, Opts);
key(Host) ->
gen_mod:get_module_opt(Host, mod_matrix_gw, key).
-spec key_name(gen_mod:opts() | global | binary()) -> binary().
key_name(Opts) when is_map(Opts) ->
gen_mod:get_opt(key_name, Opts);
key_name(Host) ->
gen_mod:get_module_opt(Host, mod_matrix_gw, key_name).
-spec matrix_domain(gen_mod:opts() | global | binary()) -> binary().
matrix_domain(Opts) when is_map(Opts) ->
gen_mod:get_opt(matrix_domain, Opts);
matrix_domain(Host) ->
gen_mod:get_module_opt(Host, mod_matrix_gw, matrix_domain).
-spec matrix_id_as_jid(gen_mod:opts() | global | binary()) -> boolean().
matrix_id_as_jid(Opts) when is_map(Opts) ->
gen_mod:get_opt(matrix_id_as_jid, Opts);
matrix_id_as_jid(Host) ->
gen_mod:get_module_opt(Host, mod_matrix_gw, matrix_id_as_jid).