Ejabberd.Config.OptsFormatter (ejabberd v21.4.0)

Module for formatting options parsed into the format ejabberd uses.

Link to this section 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.

Link to this section Functions

Link to this function

format_opts_for_ejabberd(opts)

Specs

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.