Liking cljdoc? Tell your friends :D

tech.config.core


*config-keys*clj

source

*config-map*clj

source

*config-sources*clj

source

classpath-directoriesclj

(classpath-directories)
source

classpath-jarfilesclj

(classpath-jarfiles)
source

get-configclj

(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.
sourceraw docstring

get-config-mapclj

(get-config-map)
source

get-config-table-strclj

(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.
sourceraw docstring

get-configurable-optionsclj

(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-*.
sourceraw docstring

reload-config!clj

(reload-config!)

Refreshes the config (e.g. re-reading .edn files)

Refreshes the config (e.g. re-reading .edn files)
sourceraw docstring

set-config!clj

(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`
sourceraw docstring

set-static-configuration!clj

(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.
sourceraw docstring

static-configurationcljmacro

(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)
```
sourceraw docstring

unchecked-get-configclj

(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.
sourceraw docstring

with-configcljmacro

(with-config config-key-vals & body)
source

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

× close