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?]]})
Solves environment and config variables
Solves environment and config variables
Data source builder
Data source builder
Provides the default handler function
Provides the default handler function
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)
Collection of useful interceptors
Collection of useful interceptors
Muuntaja interceptor encoder/decode..
Muuntaja interceptor encoder/decode..
Interceptor executor. Collects and executes interceptors and the given action in between.
Interceptor executor. Collects and executes interceptors and the given action in between.
To wrap any kind of middlewares and interceptors to xiana flow.
To wrap any kind of middlewares and interceptors to xiana flow.
Integrates tiny-RBAC library to the xiana flow
Integrates tiny-RBAC library to the xiana flow
Do the routing, and inject request data to the xiana state
Do the routing, and inject request data to the xiana state
The default not found and action functions
The default not found and action functions
Xiana's session management
Xiana's session management
Lifecycle management of the webserver
Lifecycle management of the webserver
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close