Context and configuration keys used by bract.core and related functions.
Context and configuration keys used by bract.core and related functions.
(*ctx-shutdown-flag config-map)
(*ctx-shutdown-flag config-map not-found)
Volatile: Shutdown begun?
Volatile: Shutdown begun?
(cfg-drain-timeout config-map)
(cfg-drain-timeout config-map not-found)
Workload drain timeout
Workload drain timeout
(cfg-exports config-map)
(cfg-exports config-map not-found)
Vector of config keys to export as system properties
Vector of config keys to export as system properties
(cfg-inducers config-map)
(cfg-inducers config-map not-found)
Vector of fully qualified inducer fn names
Vector of fully qualified inducer fn names
(ctx-alive-tstamp config-map)
(ctx-alive-tstamp config-map not-found)
Derefable (fn []): alive timestamp in milliseconds
Derefable (fn []): alive timestamp in milliseconds
(ctx-app-exit-code config-map)
(ctx-app-exit-code config-map not-found)
Application exit code (int)
Application exit code (int)
(ctx-cli-args config-map)
(ctx-cli-args config-map not-found)
Collection of CLI arguments
Collection of CLI arguments
(ctx-config config-map)
(ctx-config config-map not-found)
Application config
Application config
(ctx-config-files config-map)
(ctx-config-files config-map not-found)
Config file names
Config file names
(ctx-context-file config-map)
(ctx-context-file config-map not-found)
Context file name
Context file name
(ctx-deinit config-map)
(ctx-deinit config-map not-found)
Functions [(fn []) ..] to deinitialize the app
Functions [(fn []) ..] to deinitialize the app
(ctx-exit? config-map)
(ctx-exit? config-map not-found)
Whether break out of all inducer levels
Whether break out of all inducer levels
(ctx-health-check config-map)
(ctx-health-check config-map not-found)
Health check functions [(fn []) ..]
Health check functions [(fn []) ..]
(ctx-inducers config-map)
(ctx-inducers config-map not-found)
Vector of inducer fns or fully qualified names
Vector of inducer fns or fully qualified names
(ctx-launch? config-map)
(ctx-launch? config-map not-found)
Whether invoke launcher fn
Whether invoke launcher fn
(ctx-launchers config-map)
(ctx-launchers config-map not-found)
Fully qualified launcher fn names
Fully qualified launcher fn names
(ctx-runtime-info config-map)
(ctx-runtime-info config-map not-found)
Runtime-info functions [(fn []) ..]
Runtime-info functions [(fn []) ..]
(ctx-shutdown-hooks config-map)
(ctx-shutdown-hooks config-map not-found)
Added shutdown hook threads
Added shutdown hook threads
(ctx-stopper config-map)
(ctx-stopper config-map not-found)
Function (fn []) to stop the started application
Function (fn []) to stop the started application
(ctx-verbose? config-map)
(ctx-verbose? config-map not-found)
Verbose initialization?
Verbose initialization?
(discover-config context discovery-key f)
Discover non-nil config for given discovery-key using supplied function (fn [key-path]) -> context
and put into
the config under given context if not already populated. Return potentially updated context.
Discover non-nil config for given discovery-key using supplied function `(fn [key-path]) -> context` and put into the config under given context if not already populated. Return potentially updated context.
(induce-exit context)
(induce-exit context exit-code)
Update given context with {:bract.core/exit? true}
to bail out of the inducer-chain at all levels. Optionally, add
application exit code when exiting inducer chain.
Update given context with `{:bract.core/exit? true}` to bail out of the inducer-chain at all levels. Optionally, add application exit code when exiting inducer chain.
(print-config config config-filenames)
Print the given config using the format determined from the supplied config file names.
Print the given config using the format determined from the supplied config file names.
(resolve-config context config-filenames)
Given a collection of config filenames, read and resolve config as a map and return it.
Given a collection of config filenames, read and resolve config as a map and return it.
(resolve-context context context-filename)
Given a context filename, read and resolve as a map and merge into the current context.
Given a context filename, read and resolve as a map and merge into the current context.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close