Liking cljdoc? Tell your friends :D

a-frame.std-interceptors


assoc-log-contextclj/s

(assoc-log-context interceptor-context provided-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

if a log-context is already set do not override it

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

if a log-context is already set do not override it
sourceraw docstring

ctx-event-handler-interceptorclj/s

source

ctx-handler->interceptorclj/s

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

default-global-interceptorsclj/s

the default set of global-interceptors when no others are specified at router construction - handles unhandled errors and does all fx

the default set of global-interceptors when no others are specified
at router construction -
handles unhandled errors and does all fx
sourceraw docstring

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

minimal-global-interceptorsclj/s

very minimal set of global interceptors which only handles otherwise unhandled errors - use as global-interceptors when you don't want any fx processed

very minimal set of global interceptors which only handles otherwise
unhandled errors - use as global-interceptors when you don't want
any fx processed
sourceraw docstring

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

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
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

success-report-interceptorclj/s

source

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