aboutsummaryrefslogtreecommitdiff
path: root/src/mod_host_meta_opt.erl
blob: 965e95cf8e91fc1a0c72908771f204328c3d7d70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%% Generated automatically
%% DO NOT EDIT: run `make options` instead

-module(mod_host_meta_opt).

-export([bosh_service_url/1]).
-export([websocket_url/1]).

-spec bosh_service_url(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
bosh_service_url(Opts) when is_map(Opts) ->
    gen_mod:get_opt(bosh_service_url, Opts);
bosh_service_url(Host) ->
    gen_mod:get_module_opt(Host, mod_host_meta, bosh_service_url).

-spec websocket_url(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
websocket_url(Opts) when is_map(Opts) ->
    gen_mod:get_opt(websocket_url, Opts);
websocket_url(Host) ->
    gen_mod:get_module_opt(Host, mod_host_meta, websocket_url).