Liking cljdoc? Tell your friends :D

com.yetanalytics.datasim.xapi.client

Simple xAPI LRS client fns

Simple xAPI LRS client fns
raw docstring

default-http-optionsclj

source

post-statementsclj

(post-statements {:keys [endpoint batch-size http-options] :or {batch-size 25}}
                 statement-seq
                 &
                 {:keys [emit-ids-fn]})

Given LRS options and a seq of statements, send them to an LRS in sync batches If an emit-ids-fn is given it will be called with posted statement ids on success.

Given LRS options and a seq of statements, send them to an LRS in sync batches
If an emit-ids-fn is given it will be called with posted statement ids on success.
sourceraw docstring

post-statements-asyncclj

(post-statements-async {:keys [endpoint batch-size http-options]
                        :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 async batches

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 async
batches

Returns a channel that will reciveve [:success <list of statement ids>] for
each batch or [:fail <failing request>]. Will stop sending on failure.
sourceraw docstring

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

× close