Liking cljdoc? Tell your friends :D

framework.components.interceptors


acl-restrictclj

(acl-restrict)
(acl-restrict m)

:enter checks access control :leave place for tightening db query via provided owner-fn

:enter checks access control
:leave place for tightening db query via provided owner-fn
sourceraw docstring

db-accessclj

(db-access)
(db-access on-new-session)

Runs HoneySQL query provided in (:query state) Injects the result to (state [:response-data :db-data]) Optional parameter function: executed on :enter, if session interceptors creates new-session key in session data for instance fetching user from db by it's id

Runs HoneySQL query provided in (:query state)
Injects the result to (state [:response-data :db-data])
Optional parameter function: executed on :enter, if session interceptors creates new-session key in session data
for instance fetching user from db by it's id
sourceraw docstring

logclj

source

messageclj

(message m)
source

muuntajaclj

(muuntaja)
(muuntaja instance)

Muuntaja interceptor wrapped into xiana monad

Muuntaja interceptor wrapped into xiana monad
sourceraw docstring

paramsclj

Extract parameters from request, should be middleware, or interceptor

Extract parameters from request, should be middleware, or interceptor
sourceraw docstring

require-logged-inclj

(require-logged-in)
(require-logged-in or-else)

Tries to extract userId from headers/authorization, and adds it as user/id into session-data. If fails, it executes 'or-else' parameter function. By default it inserts a new guest user

Tries to extract userId from headers/authorization, and adds it as user/id into session-data.
If fails, it executes 'or-else' parameter function. By default it inserts a new guest user
sourceraw docstring

session-interceptorclj

:enter Extracts session-id from headers. Tries to get last session with the same id from session backend :leave Stores actual session in session backend TODO session Time To Leave

:enter Extracts session-id from headers. Tries to get last session with the same id from session backend
:leave Stores actual session in session backend
TODO session Time To Leave
sourceraw docstring

side-effectclj

Place for business logic based on db-data, before rendering view

Place for business logic based on db-data, before rendering view
sourceraw docstring

viewclj

Executes view function to create response

Executes view function to create response
sourceraw docstring

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

× close