Public post-decode hook registry.
Hooks are applied to packet maps after decode and are intentionally isolated: failures in one hook do not stop packet processing.
Public post-decode hook registry. Hooks are applied to packet maps after decode and are intentionally isolated: failures in one hook do not stop packet processing.
(apply! m)Apply all hooks to packet map m.
Hooks run in registration order.
Exceptions are swallowed and non-map return values are ignored.
Hooks are skipped unless m contains :decoded and does not contain :decode-error.
Apply all hooks to packet map `m`. Hooks run in registration order. Exceptions are swallowed and non-map return values are ignored. Hooks are skipped unless `m` contains `:decoded` and does not contain `:decode-error`.
(installed)Return installed hook keys in execution order.
Return installed hook keys in execution order.
(register! k f)Register hook f under key k.
f has shape (fn [m] m') where m is a packet map.
Re-registering k overwrites the previous hook and moves it to the tail.
Register hook `f` under key `k`. `f` has shape `(fn [m] m')` where `m` is a packet map. Re-registering `k` overwrites the previous hook and moves it to the tail.
(unregister! k)Remove a previously registered hook by key.
Remove a previously registered hook by key.
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 |