Host-installed hooks the swarm store calls on write paths.
The store never names the orchestration layer. The host installs:
Host-installed hooks the swarm store calls on write paths. The store never names the orchestration layer. The host installs: - :ledger-append (fn [event]) durable write-through for terminal events - :claim-released (fn [file-path]) mirror a released claim elsewhere (e.g. the core.logic claim db) - :stale-threshold-ms activity window for hiding stale ling rows Absent hooks are no-ops; an absent threshold falls back to 30 minutes.
(append! event)Ledger write-through for EVENT via the :ledger-append hook, or nil. Never throws.
Ledger write-through for EVENT via the :ledger-append hook, or nil. Never throws.
(claim-released! file-path)Tell the :claim-released hook that FILE-PATH's claim was released. Never throws.
Tell the :claim-released hook that FILE-PATH's claim was released. Never throws.
(clear!)Remove every installed hook. For tests.
Remove every installed hook. For tests.
Activity-staleness threshold used when the host installs none (30 minutes).
Activity-staleness threshold used when the host installs none (30 minutes).
(install! hook-map)Merge HOOK-MAP into the installed hooks. Returns the installed map.
Merge HOOK-MAP into the installed hooks. Returns the installed map.
(scope-rows opts session-key rows)The ROWS a session owns, via the :scope-rows hook (fn [opts session-key rows]). OPTS carries :session-ref and :parent-of; SESSION-KEY names the row attribute holding the writing session. Without the hook, or without a :session-ref, the rows pass through unscoped.
The ROWS a session owns, via the :scope-rows hook (fn [opts session-key rows]). OPTS carries :session-ref and :parent-of; SESSION-KEY names the row attribute holding the writing session. Without the hook, or without a :session-ref, the rows pass through unscoped.
(stale-threshold-ms)Activity window (ms) after which a ling row counts as stale.
Activity window (ms) after which a ling row counts as stale.
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 |