Pow v0.1.0-rc.1 Pow.Extension.Config View Source

Configuration helpers for extensions.

Link to this section Summary

Functions

Finds all extensions that has a module matching the provided module list

Fetches the :extensions key from the configuration

Returns a binary of the extension atom

Link to this section Functions

Link to this function discover_modules(config, module_list) View Source
discover_modules(Pow.Config.t(), [any()]) :: [atom()]

Finds all extensions that has a module matching the provided module list.

It’ll concat the extension atom with the module list, and return a list of all modules that is available in the project.

Link to this function extensions(config) View Source
extensions(Pow.Config.t()) :: [atom()]

Fetches the :extensions key from the configuration.

Link to this function underscore_extension(extension) View Source
underscore_extension(atom()) :: binary()

Returns a binary of the extension atom.

This is usually used to create extension namespaces for methods to be used in shared modules.