Liking cljdoc? Tell your friends :D

duct.core

Core functions required by a Duct application.

Core functions required by a Duct application.
raw docstring

add-shutdown-hookclj

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

assoc-in-defaultclj

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

compileclj

(compile config)

Prep then initiate all keys that derive from :duct/compiler.

Prep then initiate all keys that derive from :duct/compiler.
raw docstring

execclj

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

logclj/smacro

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

not-in?clj

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

prepclj

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

read-configclj

(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
raw docstring

remove-shutdown-hookclj

(remove-shutdown-hook key)

Remove a shutdown hook identified by the specified key.

Remove a shutdown hook identified by the specified key.
raw docstring

target-pathclj

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.
raw docstring

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

× close