aboutsummaryrefslogtreecommitdiff
path: root/src/mod_echo_opt.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_echo_opt.erl')
-rw-r--r--src/mod_echo_opt.erl20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mod_echo_opt.erl b/src/mod_echo_opt.erl
new file mode 100644
index 000000000..8c030e6ab
--- /dev/null
+++ b/src/mod_echo_opt.erl
@@ -0,0 +1,20 @@
+%% Generated automatically
+%% DO NOT EDIT: run `make options` instead
+
+-module(mod_echo_opt).
+
+-export([host/1]).
+-export([hosts/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_echo, host).
+
+-spec hosts(gen_mod:opts() | global | binary()) -> [binary()].
+hosts(Opts) when is_map(Opts) ->
+ gen_mod:get_opt(hosts, Opts);
+hosts(Host) ->
+ gen_mod:get_module_opt(Host, mod_echo, hosts).
+