mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
Add mod_matrix_gw
This commit is contained in:
parent
67a6776fba
commit
f44e23b8cc
6 changed files with 4301 additions and 0 deletions
48
src/mod_matrix_gw_opt.erl
Normal file
48
src/mod_matrix_gw_opt.erl
Normal file
|
@ -0,0 +1,48 @@
|
|||
%% 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).
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue