Liking cljdoc? Tell your friends :D

hive-datascript.swarm.hooks

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.
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.
raw docstring

append!clj

(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.
sourceraw docstring

claim-released!clj

(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.
sourceraw docstring

clear!clj

(clear!)

Remove every installed hook. For tests.

Remove every installed hook. For tests.
sourceraw docstring

default-stale-threshold-msclj

Activity-staleness threshold used when the host installs none (30 minutes).

Activity-staleness threshold used when the host installs none (30 minutes).
sourceraw docstring

install!clj

(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.
sourceraw docstring

installedclj

(installed)

The installed hook map.

The installed hook map.
sourceraw docstring

scope-rowsclj

(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.
sourceraw docstring

stale-threshold-msclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close