Liking cljdoc? Tell your friends :D
All platforms.

systems.thoughtfull.argus


argusclj/s

(argus & {:keys [encoders decoders]})

Create an instance of argus that uses specified encoders and decoders for tagged values. Encoders maps from type to either a function taking a single argument (the value) and returning a tagged value or a vector with a tag and a function that takes a single argument (the value) and returns the encoded value.

Decoders maps from a tag to a function taking a single value (the encoded value) and returns the decoded value.

Create an instance of argus that uses specified encoders and decoders for tagged values.
Encoders maps from type to either a function taking a single argument (the value) and returning
a tagged value or a vector with a tag and a function that takes a single argument (the value)
and returns the encoded value.

Decoders maps from a tag to a function taking a single value (the encoded value) and returns the
decoded value.
sourceraw docstring

deargusclj/s

(deargus argus o)

Rewrite o as Clojure/Java values according to the decoders in the given argus instance.

Rewrite o as Clojure/Java values according to the decoders in the given argus instance.
sourceraw docstring

enargusclj/s

(enargus argus o)

Rewrite o as JSON with tagged values according to the encoders in the given argus instance.

Rewrite o as JSON with tagged values according to the encoders in the given argus instance.
sourceraw docstring

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

× close