io.randomseed.bankster.init
added in 2.0.0
Bankster library, registry initialization helpers.
load-registry
added in 2.0.0
(load-registry resource-path)(load-registry resource-path opts)Loads a registry from an EDN config resource file (classpath path).
By default it loads ONLY the provided resource-path (no overlay from Bankster’s distribution config).
Options map:
:keep-dist?- when truthy, loads the distribution registry first and overlays it with the user registry usingio.randomseed.bankster.util.importer/merge-registry. Default: false.:dist-resource-path- distribution resource path. Default:io.randomseed.bankster.config/default-resource-path.:optional?- when truthy, missingresource-pathis treated as “no overlay” (returns dist registry when keep-dist?, or an empty registry when not). Default: false.:merge-opts- a map of options forimporter/merge-registry: -:verbose?(boolean), -:preserve-fields(seq), -:iso-like?(boolean).
Returns a Registry.
load-registry!
added in 2.0.0
(load-registry! resource-path)(load-registry! resource-path opts)Like load-registry, but installs the result as the global registry.