Ejabberd.Config.ValidatorUtility (ejabberd v21.4.0)

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

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

Link to this section Functions

Link to this function

extract_module_names(modules)

Specs

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).

Link to this function

put_error(errors, key, val)

Specs

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.