View Source Guardian.Config (Guardian v2.3.2)

Working with configuration for guardian.

Link to this section Summary

Types

Configuration values can be given using the following types

Functions

Resolves possible values from a configuration.

Link to this section Types

@type config_value() :: {module(), atom(), [any()]} | any()

Configuration values can be given using the following types:

  • {MyModule, :func, [:some, :args]} Calls the function on the module with args
  • any other value

Link to this section Functions

@spec resolve_value(value :: config_value()) :: any()

Resolves possible values from a configuration.

  • {m, f, a} - Calls function f on module m with arguments a and returns the result
  • value - Returns other values as is