25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00
xmpp.chapril.org-ejabberd/src/mod_mqtt_bridge_opt.erl
2022-12-07 13:38:05 +01:00

21 lines
767 B
Erlang

%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_mqtt_bridge_opt).
-export([replication_user/1]).
-export([servers/1]).
-spec replication_user(gen_mod:opts() | global | binary()) -> jid:jid().
replication_user(Opts) when is_map(Opts) ->
gen_mod:get_opt(replication_user, Opts);
replication_user(Host) ->
gen_mod:get_module_opt(Host, mod_mqtt_bridge, replication_user).
-spec servers(gen_mod:opts() | global | binary()) -> {[{atom(),'mqtt' | 'mqtts' | 'mqtt5' | 'mqtt5s',binary(),non_neg_integer(),#{binary()=>binary()},#{binary()=>binary()},map()}],#{binary()=>[atom()]}}.
servers(Opts) when is_map(Opts) ->
gen_mod:get_opt(servers, Opts);
servers(Host) ->
gen_mod:get_module_opt(Host, mod_mqtt_bridge, servers).