Liking cljdoc? Tell your friends :D

com.timezynk.domain.mask

Implementation of DTC property masks.

A property is redacted from the document if the following conditions are met:

  • property has been annotated with a :mask f attribute
  • f is a function
  • (f dtc doc action property-name) is truthy at the time of deferral

Example: (defn mf "Property :y is read-only, disable writing!" [dtc doc action property-name] (not= :read action))

(def dtc (dom-type-collection :name :qwerty :properties {:x (s/string) :y (s/string :mask mf) :z (s/string)}))

Implementation of DTC property masks.

A property is redacted from the document if the following conditions are met:
 * property has been annotated with a :mask f attribute
 * f is a function
 * (f dtc doc action property-name) is truthy at the time of deferral

Example:
(defn mf
  "Property :y is read-only, disable writing!"
  [dtc doc action property-name]
  (not= :read action))

(def dtc
  (dom-type-collection :name :qwerty
                       :properties {:x (s/string)
                                    :y (s/string :mask mf)
                                    :z (s/string)}))
raw docstring

com.timezynk.domain.mask.built-in

Useful functions for masking DTC properties.

Useful functions for masking DTC properties.
raw docstring

com.timezynk.domain.migrations.collection-header

The collection header adds information about migrations

The collection header adds information about migrations
raw docstring

com.timezynk.domain.mongo.predicates

Predicates used in a query. They will be translated into a mongo query.

Predicates used in a query. They will be translated into a mongo query.
raw docstring

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

× close