Simple xAPI LRS client functions.
Simple xAPI LRS client functions.
(post-error-message status error)
Error message for when POSTing to an LRS fails.
Error message for when POSTing to an LRS fails.
(post-statements {:keys [endpoint batch-size username password]
:or {batch-size 25}}
statement-seq
&
{:keys [print-ids?] :or {print-ids? true}})
Given LRS options and a statement-seq
, send them to an LRS in synchronous
batches. If print-ids?
is true
, returned statement IDs will be printed
to stdout. username
and password
in the options map are the Basic Auth
credentials of the LRS.
Given LRS options and a `statement-seq`, send them to an LRS in synchronous batches. If `print-ids?` is `true`, returned statement IDs will be printed to stdout. `username` and `password` in the options map are the Basic Auth credentials of the LRS.
(post-statements-async {:keys [endpoint batch-size username password]
:or {batch-size 25}}
statement-chan
&
{:keys [concurrency buffer-in buffer-out]
:or {concurrency 4 buffer-in 100 buffer-out 100}})
Given LRS options and a channel with statements, send them to an LRS in
asynchronous batches. username
and password
in the options map are the
Basic Auth credentials of the LRS.
Returns a channel that will reciveve [:success <list of statement ids>]
for each batch or [:fail <failing request>]
. Will stop sending on failure.
Given LRS options and a channel with statements, send them to an LRS in asynchronous batches. `username` and `password` in the options map are the Basic Auth credentials of the LRS. Returns a channel that will reciveve `[:success <list of statement ids>]` for each batch or `[:fail <failing request>]`. Will stop sending on failure.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close