(bind bindings & body)
Evaluates body in a lexical scope in which the symbols in the binding-forms are bound to their corresponding configuration values.
Configuration values are looked up at runtime.
Example: (bind [addr [:tcp :address] port [:tcp :port]] (format "%s:%d" addr port))
Use metadata to assign default values or make configuration keys mandatory.
Example: (bind [^:required addr [:tcp :address] ^{default: 80} port [:tcp :port]] (format "%s:%d" addr port))
Evaluates body in a lexical scope in which the symbols in the binding-forms are bound to their corresponding configuration values. Configuration values are looked up at runtime. Example: (bind [addr [:tcp :address] port [:tcp :port]] (format "%s:%d" addr port)) Use metadata to assign default values or make configuration keys mandatory. Example: (bind [^:required addr [:tcp :address] ^{default: 80} port [:tcp :port]] (format "%s:%d" addr port))
(bind* bindings & body)
Evaluates body in a lexical scope in which the symbols in the binding-forms are bound to their corresponding configuration values.
Configuration values are looked up at compile-time.
Example: (bind* [addr [:tcp :address] port [:tcp :port]] (format "%s:%d" addr port))
Use metadata to assign default values or make configuration keys mandatory.
Example: (bind* [^:required addr [:tcp :address] ^{default: 80} port [:tcp :port]] (format "%s:%d" addr port))
Evaluates body in a lexical scope in which the symbols in the binding-forms are bound to their corresponding configuration values. Configuration values are looked up at compile-time. Example: (bind* [addr [:tcp :address] port [:tcp :port]] (format "%s:%d" addr port)) Use metadata to assign default values or make configuration keys mandatory. Example: (bind* [^:required addr [:tcp :address] ^{default: 80} port [:tcp :port]] (format "%s:%d" addr port))
(gulp)
Reads the entire EDN formatted configuration file.
The default relative path of the configuration file is "config.edn". It gets overwritten by the EDN_CONFIG_PATH environment variable or Java system property.
Set EDN_CONFIG_CACHE_MILLIS to zero to disable caching.
Reads the entire EDN formatted configuration file. The default relative path of the configuration file is "config.edn". It gets overwritten by the EDN_CONFIG_PATH environment variable or Java system property. Set EDN_CONFIG_CACHE_MILLIS to zero to disable caching.
(lookup ks & {:keys [required default] :or {required false default nil}})
Searches for a configuration value, where ks is a sequence of keys.
Searches for a configuration value, where ks is a sequence of keys.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close