Ejabberd.Config.ValidatorUtility (ejabberd v23.10.0)

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

Link to this function

extract_module_names(modules)

@spec 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)

@spec 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.