(get-config k)
(get-config k read-string?)
Get app config. Accepts a key such as "PORT" or :port.
Get app config. Accepts a key such as "PORT" or :port.
(get-config-table-str & {:keys [no-redact redact-keys] :or {no-redact false}})
Returns a nice string representation of the current config map.
Returns a nice string representation of the current config map.
(get-configurable-options)
This function returns all keys that are specified in .edn files, excluding the automatic variables such as os-*.
This function returns all keys that are specified in .edn files, excluding the automatic variables such as os-*.
(reload-config!)
Refreshes the config (e.g. re-reading .edn files)
Refreshes the config (e.g. re-reading .edn files)
(set-config! key value)
Very dangerous, but useful during testing. Set a config value.
See: with-config
Very dangerous, but useful during testing. Set a config value. See: `with-config`
(set-static-configuration! static-config)
Given a map of static configuration information, combine with environment variables and set the config global vars. The outcome of this should be identical to calling (build-config) when no config information has been requested yet.
This is meant to be used with the static-configuration
macro.
Given a map of static configuration information, combine with environment variables and set the config global vars. The outcome of this should be identical to calling (build-config) when no config information has been requested yet. This is meant to be used with the `static-configuration` macro.
(static-configuration)
Macro meant to be used during AOT compile to define the jar and classpath based configuration once into a variable.
Example:
(def static-config (config/static-configuration))
(config/set-static-config! static-config)
Macro meant to be used during AOT compile to define the jar and classpath based configuration once into a variable. Example: ```clojure (def static-config (config/static-configuration)) (config/set-static-config! static-config) ```
(unchecked-get-config k)
Get app config. Unlike get-config
, doesn't coerce arguments and can return nil for missing config.
Get app config. Unlike `get-config`, doesn't coerce arguments and can return nil for missing config.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close