Ejabberd.Config.OptsFormatter (ejabberd v23.10.0)

Module for formatting options parsed into the format ejabberd uses.

Summary

Functions

Takes a keyword list with keys corresponding to the keys requested by the ejabberd config (ex: modules: mods) and formats them to be correctly evaluated by ejabberd.

Functions

Link to this function

format_opts_for_ejabberd(opts)

@spec format_opts_for_ejabberd([{atom(), any()}]) :: list()

Takes a keyword list with keys corresponding to the keys requested by the ejabberd config (ex: modules: mods) and formats them to be correctly evaluated by ejabberd.

Look at how Config.get_ejabberd_opts/0 is constructed for more informations.