Liking cljdoc? Tell your friends :D

org.purefn.kurosawa.config

Fetch configuration from the environment.

Presently, config is stored statefully in an atom after initial load.

Fetch configuration from the environment.

Presently, config is stored statefully in an `atom` after initial load.
raw docstring

default-configclj

(default-config)

This is our default, precendence based, load config from environment mechasnism. A shallow merge was chosen to make final merged config map easier to reason about. Current precendence is:

  1. Environemt variables
  2. AWS SSM Paramter Store
  3. The filesystem (legacy)

Ultimately we shouldn't need this, the config stage of application/development startup needs to revisited. But until all of our components' constructors are refactored this isn't possible.

When that day comes we can remove this nasty compile-if, and the atom, and move to a stateless startup sequence, where each component recieves the entire config map and parses out the piece it's interested in.

This is our default, precendence based, load config from environment
mechasnism.  A shallow merge was chosen to make final merged config map easier
to reason about.  Current precendence is:

1) Environemt variables
2) AWS SSM Paramter Store
3) The filesystem (legacy)

Ultimately we shouldn't need this, the config stage of application/development
startup needs to revisited.  But until all of our components' constructors are
refactored this isn't possible.

When that day comes we can remove this nasty `compile-if`, and the atom, and move to
a stateless startup sequence, where each component recieves the entire config map and
parses out the piece it's interested in.
sourceraw docstring

fetchclj

(fetch)
(fetch name)
source

set!clj

(set! m)

Set the config-map atom to configuration sourced from the envinronment, probably from:

  • org.purefn.kurosawa.config.file/fetch
  • org.purefn.kurosawa.config.env/fetch, or
  • org.purefn.kurosawa.aws.ssm/fetch
Set the `config-map` atom to configuration sourced from the envinronment,
probably from:

- `org.purefn.kurosawa.config.file/fetch`
- `org.purefn.kurosawa.config.env/fetch`, or
- `org.purefn.kurosawa.aws.ssm/fetch`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close