Liking cljdoc? Tell your friends :D

grimoire.api.web.read

This namespace implements the reading and listing parts of the Grimoire API using the Grimoire webservice as its backend.

Writing to this datastore is not supported yet™. list-classes is not supported yet™. list-defs lists all defs, not just defs of a type.

To use this backend, you will need to load this namespace, and then invoke the API with a configuration as constructed by grimoire.web/->Config.

Note that the host need not be conj.io, but must host a Grimoire 0.4 or later instance providing the v2 API. The host string should include a http or https protocol specifier as appropriate and should not end in a /.

This namespace implements the reading and listing parts of the Grimoire API
using the Grimoire webservice as its backend.

Writing to this datastore is not supported yet™.
`list-classes` is not supported yet™.
`list-defs` lists all defs, not just defs of a type.

To use this backend, you will need to load this namespace, and then invoke the
API with a configuration as constructed by `grimoire.web/->Config`.

Note that the host need not be conj.io, but must host a Grimoire 0.4 or later
instance providing the v2 API. The host string should include a http or https
protocol specifier as appropriate and should not end in a /.
raw docstring

do-data-reqclj

(do-data-req config thing op)

λ [Cfg → Thing → Op] → Either[Success[t], Failure[String]]

Forges and executes a data request agains the Grimoire web API as specified by the various arguments. Returns the entire result of the Grimoire request unaltered and wrapped in Either.

λ [Cfg → Thing → Op] → Either[Success[t], Failure[String]]

Forges and executes a data request agains the Grimoire web API as specified by
the various arguments. Returns the entire result of the Grimoire request
unaltered and wrapped in Either.
raw docstring

do-thing-reqclj

(do-thing-req config op ctor parent)

λ [Cfg → Op → (λ [p → String] → c) → p ⊆ Thing] → Either[Success[Seq[c]], Failure[String]]

Helper, does a data request against the Grimoire web API as specified by the config and op, running the request results through the constructor to yield a seq of Things as constructed from the pair (parent, (:name result)).

λ [Cfg → Op → (λ [p → String] → c) → p ⊆ Thing] → Either[Success[Seq[c]], Failure[String]]

Helper, does a data request against the Grimoire web API as specified by the
config and op, running the request results through the constructor to yield a
seq of Things as constructed from the pair (parent, (:name result)).
raw docstring

grim-resultclj

(grim-result result)

λ [t] → y

Helper, destructures out the body of a Grimoire web result.

λ [t] → y

Helper, destructures out the body of a Grimoire web result.
raw docstring

grim-succeed?clj

(grim-succeed? result)

λ [t] → Bool

Helper, indicates whether a Grimoire web result succeeded or failed.

λ [t] → Bool

Helper, indicates whether a Grimoire web result succeeded or failed.
raw docstring

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

× close