Liking cljdoc? Tell your friends :D

xiana.coercion

Request and response validation by given malli rules. The rule can be defined at route definition, the schema can be defined with registry function.

Path definition example:

["/api/siege-machines/{mydomain/id}" {:hander ws/handler-fn :action mydomain.siege-machines/get-by-id :parameters {:path [:map [:mydomain/id int?]]} :responses {200 {:body :mydomain/SiegeMachine}}}]

Registry example: (registry {:mydomain/SiegeMachine [:map [:id int?] [:name keyword?] [:range {:optional true} int?] [:created {:optional true} inst?]] :mydomain/Infantry [:map [:id int?] [:name keyword?] [:attack {:optional true} int?]]})

Request and response validation by given malli rules.
The rule can be defined at route definition,
the schema can be defined with registry function.

Path definition example:

["/api/siege-machines/{mydomain/id}" {:hander     ws/handler-fn
                                        :action     mydomain.siege-machines/get-by-id
                                        :parameters {:path [:map [:mydomain/id int?]]}
                                        :responses  {200 {:body :mydomain/SiegeMachine}}}]

Registry example:
 (registry {:mydomain/SiegeMachine [:map
                                      [:id int?]
                                      [:name keyword?]
                                      [:range {:optional true} int?]
                                      [:created {:optional true} inst?]]
             :mydomain/Infantry [:map
                                   [:id int?]
                                   [:name keyword?]
                                   [:attack {:optional true} int?]]})
raw docstring

xiana.config

Solves environment and config variables

Solves environment and config variables
raw docstring

xiana.cookies

Cookie parser

Cookie parser
raw docstring

xiana.handler

Provides the default handler function

Provides the default handler function
raw docstring

xiana.hash

Cryptography helper for creating, and resolving passwords. Supported algorithms are bcrypr, pbkdf2, and scrypt. The required algorithm should be in (-> state :deps :auth :hash-algorithm)

Cryptography helper for creating, and resolving passwords.
Supported algorithms are bcrypr, pbkdf2, and scrypt.
The required algorithm should be in (-> state :deps :auth :hash-algorithm)
raw docstring

xiana.interceptor.muuntaja

Muuntaja interceptor encoder/decode..

Muuntaja interceptor encoder/decode..
raw docstring

xiana.interceptor.queue

Interceptor executor. Collects and executes interceptors and the given action in between.

Interceptor executor.
Collects and executes interceptors and the given action in between.
raw docstring

xiana.interceptor.wrap

To wrap any kind of middlewares and interceptors to xiana flow.

To wrap any kind of middlewares and interceptors to xiana flow.
raw docstring

xiana.rbac

Integrates tiny-RBAC library to the xiana flow

Integrates tiny-RBAC library to the xiana flow
raw docstring

xiana.route

Do the routing, and inject request data to the xiana state

Do the routing, and inject request data to the xiana state
raw docstring

xiana.route.helpers

The default not found and action functions

The default not found and action functions
raw docstring

xiana.webserver

Lifecycle management of the webserver

Lifecycle management of the webserver
raw docstring

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

× close