SpringConfig v0.1.1 SpringConfig View Source

Consume configuration from a Spring Cloud Config Server in Elixir.

Link to this section Summary

Functions

Finds and returns key in the configuration registry. If key is not found, default is returned

Similar to get/3 but raises if key is not found

Link to this section Functions

Link to this function

get(key, default \\ nil, opts \\ []) View Source
get(atom(), any(), keyword()) :: any()

Finds and returns key in the configuration registry. If key is not found, default is returned.

Available options are:

  • ensure_started: Uses Application.ensure_all_started/2 to start the SpringConfig application temporarily in case the process is not part of the supervision tree. Default false.
Link to this function

get!(key, opts \\ []) View Source
get!(atom(), keyword()) :: any()

Similar to get/3 but raises if key is not found.