Liking cljdoc? Tell your friends :D

domino.events


apply-result-to-ctxclj/s

(apply-result-to-ctx ctx model old-outputs new-outputs)
source

ctx-updaterclj/s

(ctx-updater edges {:domino.events/keys [db] :domino.core/keys [model] :as ctx})

Reducer that updates context with new values updated in ctx from handler of each edge. New values are only stored when they are different from old values.

In changed cases, the following keys are updated: ::changed-paths => queue of affected paths ::db => temporary relevant db within context ::change-history => sequential history of changes. List of tuples of path-value pairs

Reducer that updates context with new values updated in ctx from
handler of each edge. New values are only stored when they are different
from old values.

In changed cases, the following keys are updated:
::changed-paths => queue of affected paths
::db => temporary relevant db within context
::change-history => sequential history of changes. List of tuples of path-value pairs
sourceraw docstring

empty-queueclj/s

source

eval-traversed-edgesclj/s

(eval-traversed-edges {:domino.events/keys [changed-paths] :as ctx} graph)
(eval-traversed-edges {:domino.events/keys [changes] :as ctx} graph origin)

Given an origin and graph, update context with edges.

When an node has been visited (as an input), it cannot be considered for an output

Given an origin and graph, update context with edges.

When an node has been visited (as an input), it cannot be considered for an output
sourceraw docstring

events-inputs-as-changesclj/s

(events-inputs-as-changes {:domino.core/keys [events-by-id db]} event-ids)
source

execute-eventsclj/s

(execute-events {:domino.core/keys [db graph] :as ctx} inputs)
source

get-db-pathsclj/s

(get-db-paths model db paths)
source

input?clj/s

(input? edge)
source

origin-pathclj/s

(origin-path graph origin)
source

try-eventclj/s

(try-event event ctx db old-outputs)
(try-event {:keys [handler inputs] :as event}
           {:domino.core/keys [model] :as ctx}
           db
           old-outputs
           cb)
source

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

× close