mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
49 lines
1.5 KiB
Erlang
49 lines
1.5 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]).
|
|
-export([persist/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()) -> any().
|
|
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).
|
|
|
|
-spec persist(gen_mod:opts() | global | binary()) -> boolean().
|
|
persist(Opts) when is_map(Opts) ->
|
|
gen_mod:get_opt(persist, Opts);
|
|
persist(Host) ->
|
|
gen_mod:get_module_opt(Host, mod_matrix_gw, persist).
|
|
|