Configuration management interface with malli schema metadata.
All functions have :malli/schema metadata for runtime validation. To enable instrumentation:
(require '[malli.instrument :as mi]) (mi/instrument!) ; instruments all functions with :malli/schema metadata (mi/unstrument!) ; removes instrumentation
Configuration management interface with malli schema metadata. All functions have :malli/schema metadata for runtime validation. To enable instrumentation: (require '[malli.instrument :as mi]) (mi/instrument!) ; instruments all functions with :malli/schema metadata (mi/unstrument!) ; removes instrumentation
(cleanup-config config)Returns the cleanup configuration map from config.
Returns the cleanup configuration map from config.
(cleanup-config*)Returns the cleanup configuration map from the dynamic var.
Returns the cleanup configuration map from the dynamic var.
(database-config config)Returns the database configuration map from config.
Returns the database configuration map from config.
(database-config*)Returns the database configuration map from the dynamic var.
Returns the database configuration map from the dynamic var.
(get-config)Returns the current configuration from the dynamic var. Throws if configuration has not been loaded.
Returns the current configuration from the dynamic var. Throws if configuration has not been loaded.
(load-config)(load-config filename)(load-config filename opts)Reads and validates configuration from filename using aero. With no arguments, loads configuration with the following precedence:
Opts map may include :profile for environment-specific config. Throws if configuration is invalid or not found.
Reads and validates configuration from filename using aero. With no arguments, loads configuration with the following precedence: 1. Checks for 'skivi-config.edn' (dedicated file, root-level config) 2. Falls back to :skivi section in 'config.edn' (embedded in shared config) Opts map may include :profile for environment-specific config. Throws if configuration is invalid or not found.
(logging-config config)Returns the logging configuration map from config.
Returns the logging configuration map from config.
(logging-config*)Returns the logging configuration map from the dynamic var.
Returns the logging configuration map from the dynamic var.
(monitoring-config config)Returns the monitoring configuration map from config.
Returns the monitoring configuration map from config.
(monitoring-config*)Returns the monitoring configuration map from the dynamic var.
Returns the monitoring configuration map from the dynamic var.
(queue-config config)Returns the queue configuration map from config.
Returns the queue configuration map from config.
(queue-config*)Returns the queue configuration map from the dynamic var.
Returns the queue configuration map from the dynamic var.
(reload-config! system)(reload-config! system filename)Reloads configuration and updates system. System can be:
Optional filename parameter specifies which config file to reload.
Reloads configuration and updates system. System can be: - Map with :config atom key (returns updated system map) - Atom directly (returns dereferenced new config) - nil (returns new config without updating anything) Optional filename parameter specifies which config file to reload.
(retry-config config)Returns the retry configuration map from config.
Returns the retry configuration map from config.
(retry-config*)Returns the retry configuration map from the dynamic var.
Returns the retry configuration map from the dynamic var.
(scheduler-config config)Returns the scheduler/cron configuration map from config.
Returns the scheduler/cron configuration map from config.
(scheduler-config*)Returns the scheduler/cron configuration map from the dynamic var.
Returns the scheduler/cron configuration map from the dynamic var.
(schema-name config)Returns the database schema name string from config.
Returns the database schema name string from config.
(schema-name*)Returns the database schema name string from the dynamic var.
Returns the database schema name string from the dynamic var.
(validate-config config)Returns config if it conforms to the Config schema, otherwise throws ex-info with humanised validation errors.
Returns config if it conforms to the Config schema, otherwise throws ex-info with humanised validation errors.
(with-config config f)Evaluates f with config bound to the dynamic configuration var. Returns the result of calling f.
Evaluates f with config bound to the dynamic configuration var. Returns the result of calling f.
(worker-config config)Returns the worker configuration map from config.
Returns the worker configuration map from config.
(worker-config*)Returns the worker configuration map from the dynamic var.
Returns the worker configuration map from the dynamic var.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |