Liking cljdoc? Tell your friends :D

prpr.a-frame.std-interceptors


assoc-log-contextclj/s

(assoc-log-context interceptor-context log-context)

add the log context into the top-level of the interceptor-context and into the coeffects - so both the interceptor-context and the coeffects can be used as a log-context-src in the a-frame.log logging macros

add the log context into the top-level of
the interceptor-context and into the
coeffects - so both the interceptor-context
and the coeffects can be used as a log-context-src
in the a-frame.log logging macros
sourceraw docstring

ctx-event-handler-interceptorclj/s

source

ctx-handler->interceptorclj/s

(ctx-handler->interceptor pure-handler-key)
source

error-context-reportclj/s

(error-context-report err)
source

extract-coeffects-interceptorclj/s

an interceptor to extract coeffects. must be at the head of the chain, because this breaks the interceptor-context

an interceptor to extract coeffects. must be at the head of the
chain, because this breaks the interceptor-context
sourceraw docstring

fx-event-handler-interceptorclj/s

source

fx-handler->interceptorclj/s

(fx-handler->interceptor pure-handler-key)
source

interceptor->remove-leave-errorclj/s

(interceptor->remove-leave-error interceptor-spec)
source

modify-interceptors-for-coeffectsclj/s

(modify-interceptors-for-coeffects n interceptors)

an interceptor modifier which

  • removes n (default 1) interceptors completely from the and of the chain
  • removes all :leave and :error fns from the remaining interceptors
  • inserts a new interceptor at the beginning of the chain which extracts coeffects from the context
an interceptor modifier which
- removes n (default 1) interceptors completely from the and of the chain
- removes all :leave and :error fns from the remaining interceptors
- inserts a new interceptor at the beginning of the chain which
    extracts coeffects from the context
sourceraw docstring

remove-leave-error-proxy-interceptorclj/s

a proxy interceptor which removes ::leave and ::error handlers from the proxied interceptor

to do this the proxy interceptor defines only an ::enter fn and accepts an InterceptorSpec for the proxied interceptor as enter-data

a proxy interceptor which removes ::leave and ::error
handlers from the proxied interceptor

to do this the proxy interceptor defines only an
::enter fn and accepts an InterceptorSpec
for the proxied interceptor as enter-data
sourceraw docstring

set-log-contextclj/s

(set-log-context log-context-data-spec)

set a log-context based on the provided data-spec

e.g.

{:request-id #cofx-path [:yapster.api :request-id]}

will cause "[request-id:<request-id>]" sections to be logged in a-frame error reports

set a log-context based on the provided data-spec

e.g.

{:request-id #cofx-path [:yapster.api :request-id]}

will cause "[request-id:<request-id>]" sections to
be logged in a-frame error reports
sourceraw docstring

set-log-context-interceptorclj/s

set a log context - either with data, or if no data is provided then {:id <uuid>} will be used

set a log context - either with data, or if no data
is provided then {:id <uuid>} will be used
sourceraw docstring

unhandled-error-report-interceptorclj/s

an interceptor which logs a useful report for an error

an interceptor which logs a useful report for an error
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close