ejabberd v17.01.0 Ejabberd.Config.ValidatorUtility

Module used as a base validator for validation modules. Imports utility functions for working with validation structures.

Summary

Functions

Given a list of modules it extracts and returns a list of the module names (which are Elixir.Module)

Inserts an error inside the errors collection, for the given key. If the key doesn’t exists then it creates an empty collection and inserts the value passed

Functions

extract_module_names(modules)
extract_module_names(Ejabberd.Config.EjabberdModule.t) :: [atom]

Given a list of modules it extracts and returns a list of the module names (which are Elixir.Module).

put_error(errors, key, val)
put_error(map, atom, any) :: map

Inserts an error inside the errors collection, for the given key. If the key doesn’t exists then it creates an empty collection and inserts the value passed.