Lamina.DSL.provider

You're seeing just the macro provider, go back to Lamina.DSL module for more information.
Link to this macro

provider(module)

(macro)

Specs

provider(module()) :: Macro.t()

Defines a provider for the configuration system.

The same as provider/2, however passes an empty list to the provider's init/1 function.

Link to this macro

provider(module, options)

(macro)

Specs

provider(module(), keyword()) :: Macro.t()

Defines a provider for the configuration system.

Arguments:

  • module - the name of a module which implements the Lamina.Provider behaviour.
  • options - a keyword list of options to be passed to the provider's init/1 function.

Example

provider(Lamina.Provider.Env, prefix: "HTTP")