Liking cljdoc? Tell your friends :D

paclo.decode-ext

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

apply!clj

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

installedclj

(installed)

Return installed hook keys in execution order.

Return installed hook keys in execution order.
sourceraw docstring

register!clj

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

unregister!clj

(unregister! k)

Remove a previously registered hook by key.

Remove a previously registered hook by key.
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