Liking cljdoc? Tell your friends :D

keechma.toolbox.pipeline.core


begin-forms

(begin-forms acc {:keys [begin-args begin-body]})
source

broadcast!

(broadcast! command payload)

Broadcast pipeline sideffect.

Accepts command and payload arguments.

Broadcast pipeline sideffect.

Accepts `command` and `payload` arguments.
sourceraw docstring

BroadcastSideffect

source

call-sideffect

(call-sideffect sideffect ctrl app-db-atom pipelines$)
source

cancel-pipelines!

(cancel-pipelines! pipeline-filter)
source

CancelPipelinesSideffect

source

commit!

(commit! value)
(commit! value cb)

Commit pipeline sideffect.

Accepts value or value and callback as arguments. Value should be a new version of app-db.

(commit! (assoc-in app-db [:kv :user] {:username "retro"}))

If the callback argument is present, this function will be called immediately after the app-db-atom is updated. This is useful if you want to force Reagent to re-render the screen.

Commit pipeline sideffect.

Accepts `value` or `value` and `callback` as arguments. Value should be a new version of app-db.

```clojure
(commit! (assoc-in app-db [:kv :user] {:username "retro"}))

```

If the callback argument is present, this function will be called immediately after the app-db-atom is updated.
This is useful if you want to force Reagent to re-render the screen.
sourceraw docstring

CommitSideffect

source

do!

(do! & sideffects)

Runs multiple sideffects sequentially:

(do!
  (commit! (assoc-in app-db [:kv :current-user] value))
  (redirect! {:page "user" :id (:id user)}))
Runs multiple sideffects sequentially:

```clojure
(do!
  (commit! (assoc-in app-db [:kv :current-user] value))
  (redirect! {:page "user" :id (:id user)}))
```
sourceraw docstring

DoSideffect

source

Error

source

exclusive

(exclusive pipeline)
source

execute!

(execute! command)
(execute! command payload)

Execute pipeline sideffect.

Accepts command and payload arguments. Use this if you want to execute a command on the current controller.

Execute pipeline sideffect.

Accepts `command` and `payload` arguments. Use this if you want to execute a command on the current controller.
sourceraw docstring

ExecuteSideffect

source

expand-body

(expand-body args body)
source

extract-pipeline-parts

(extract-pipeline-parts args body)
source

ISideffectprotocol

call!
(call! this controller app-db-atom pipelines$)
source

make-pipeline

(make-pipeline args)
source

pipeline!macro

(pipeline! args & body)
source

pipeline-errors

source

pipeline-running?

(pipeline-running? pipelines$ running-check-path)
source

prepare-body-args

(prepare-body-args args)
source

prepare-pipeline

(prepare-pipeline args body)
source

prepare-running-pipelines

(prepare-running-pipelines pipelines)
source

redirect!

(redirect! params)
(redirect! params action)

Redirect pipeline sideffect.

Accepts params argument. Page will be redirected to a new URL which will be generated from the passed in params argument. If you need to access the current route data, it is present in the pipeline app-db argument under the [:route :data] path.

Redirect pipeline sideffect.

Accepts `params` argument. Page will be redirected to a new URL which will be generated from the passed in params argument. If you need to 
access the current route data, it is present in the pipeline `app-db` argument under the `[:route :data]` path.
sourceraw docstring

RedirectSideffect

source

reroute!

(reroute!)
source

RerouteSideffect

source

rescue-forms

(rescue-forms acc {:keys [begin-args rescue-args rescue-body]})
source

run-pipeline!

(run-pipeline! pipeline-key)
(run-pipeline! pipeline-key args)

Runs a pipeline in a way that blocks the current pipeline until the current pipeline is done. It behaves same as `execute! but blocks the parent pipeline until it's done. Return value and errors will be ignored by the parent pipeline.

Runs a pipeline in a way that blocks the current pipeline until the current pipeline is done. It behaves same as `execute! but blocks the parent pipeline until it's done. Return value and errors will be ignored by the parent pipeline.
sourceraw docstring

RunPipelineSideffect

source

send-command!

(send-command! command)
(send-command! command payload)

Send command pipeline sideffect.

Accepts command and payload arguments. Command should be a vector where first element is the controller topic, and the second element is the command name.

Send command pipeline sideffect.

Accepts `command` and `payload` arguments. Command should be a vector where first element is the controller topic, and the second
element is the command name. 
sourceraw docstring

SendCommandSideffect

source

wait-pipelines!

(wait-pipelines! pipeline-filter)
source

WaitPipelinesSideffect

source

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

× close