Core functions required by a Duct application.
Core functions required by a Duct application.
(add-shutdown-hook key func)
Set a function to be executed when the current process shuts down. The key argument should be unique, and is used in remove-shutdown-hook.
Set a function to be executed when the current process shuts down. The key argument should be unique, and is used in remove-shutdown-hook.
(assoc-in-default m ks default)
Functionally the same as assoc-in, except that it will not overwrite any existing value.
Functionally the same as assoc-in, except that it will not overwrite any existing value.
(compile config)
Prep then initiate all keys that derive from :duct/compiler.
Prep then initiate all keys that derive from :duct/compiler.
(exec config)
Prep then initiate a configuration, excluding keys that derive from :duct/compiler, and then block indefinitely. This function should be called from -main when a standalone application is required.
Prep then initiate a configuration, excluding keys that derive from :duct/compiler, and then block indefinitely. This function should be called from -main when a standalone application is required.
(log logger level event)
(log logger level event data)
Log an event and optional data structure at the supplied severity level using a logger that implements the duct.core.protocols/Logger protocol.
Log an event and optional data structure at the supplied severity level using a logger that implements the duct.core.protocols/Logger protocol.
(not-in? m ks)
Return true if the map, m, does not contain a nested value identified by a sequence of keys, ks.
Return true if the map, m, does not contain a nested value identified by a sequence of keys, ks.
(prep config)
Prep a configuration, ready to be initiated. Key namespaces are loaded, and modules are applied.
Prep a configuration, ready to be initiated. Key namespaces are loaded, and modules are applied.
(read-config source)
(read-config source & sources)
Read an edn configuration from one or more slurpable sources. Multiple sources are meta-merged together. Three additional data readers are supported:
#ref - an Integrant reference to another key #resource - a resource path string, see clojure.java.io/resource #env - an environment variable, see duct.core.env/env
Read an edn configuration from one or more slurpable sources. Multiple sources are meta-merged together. Three additional data readers are supported: #ref - an Integrant reference to another key #resource - a resource path string, see clojure.java.io/resource #env - an environment variable, see duct.core.env/env
(remove-shutdown-hook key)
Remove a shutdown hook identified by the specified key.
Remove a shutdown hook identified by the specified key.
A path to place generated files in. Typically used by compilers. Can be set via the duct.target.path system property.
A path to place generated files in. Typically used by compilers. Can be set via the duct.target.path system property.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close