The app registry is data: every classpath copy of hive_artcraft/apps.edn is read and concatenated, each module is validated against schema/AppModule, and per-app config and control ports are resolved here. Adding an app never touches this namespace.
The app registry is data: every classpath copy of hive_artcraft/apps.edn is read and concatenated, each module is validated against schema/AppModule, and per-app config and control ports are resolved here. Adding an app never touches this namespace.
(app-config config app)Per-app override from the addon config's :apps map (string or keyword keys).
Per-app override from the addon config's :apps map (string or keyword keys).
(app-ids registry)Mounted app ids, in registry order.
Mounted app ids, in registry order.
(find-app registry app)Look an app up by id, or refuse naming the mounted ones.
Look an app up by id, or refuse naming the mounted ones.
(index-modules modules)Validate modules and index them by :app/id in registry order; refuse invalid or duplicate ids.
Validate modules and index them by :app/id in registry order; refuse invalid or duplicate ids.
(load-registry)(load-registry resource)Read and index the classpath registry.
Read and index the classpath registry.
(read-modules resource)Read and concatenate every classpath copy of resource (each one EDN vector of modules).
Read and concatenate every classpath copy of `resource` (each one EDN vector of modules).
Classpath path of the app registry data list.
Classpath path of the app registry data list.
(resolve-port module app-cfg getenv)Control port for a :port app: :apps config wins, then <APP>_CONTROL_PORT, then the module default.
Control port for a :port app: :apps config wins, then <APP>_CONTROL_PORT, then the module default.
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 |