Annex v0.2.0 Annex.LayerConfig View Source

The Annex.LayerConfig is the intermediate structure used to intialize an Annex.Layer.

This is particularly useful for building the same Layer given many different combinations of configuration.

Link to this section Summary

Link to this section Types

Link to this type

details() View Source
details() :: %{optional(atom()) => any()}

Link to this type

t(layer_module) View Source
t(layer_module) :: %Annex.LayerConfig{details: details(), module: layer_module}

Link to this section Functions

Link to this function

add(cfg, details) View Source
add(t(module()), any()) :: t(module())

Link to this function

add(cfg, key, value) View Source
add(t(module()), atom(), any()) :: t(module())

Link to this function

build(module, kvs \\ []) View Source

Link to this function

fetch_lazy(cfg, key, func) View Source

Link to this function

init_layer(cfg) View Source
init_layer(t(module())) :: Annex.Layer.t()

Link to this function

module(layer_config) View Source
module(t(module())) :: module()