(node-signal {:keys [context graph initial-graph]} node-key signal-key)
Trigger a signal through a node, assumes dependencies have been run. Subsequent signal calls is supported, but it should be handled in it's implementation. For example, http server component checks that it already started and does nothing to prevent port taken error or it can restart itself by taking recalculated properties from deps. Static nodes just recalculates its values. If node does not support signal then do nothing.
Trigger a signal through a node, assumes dependencies have been run. Subsequent signal calls is supported, but it should be handled in it's implementation. For example, http server component checks that it already started and does nothing to prevent port taken error or it can restart itself by taking recalculated properties from deps. Static nodes just recalculates its values. If node does not support signal then do nothing.
(normalize {:keys [context graph initial-graph]
:or {context default-context}
:as gx-map})
Given a graph definition and config, return a normalised form. Idempotent. This acts as the static analysis step of the graph. Returns tuple of error explanation (if any) and normamized graph.
Given a graph definition and config, return a normalised form. Idempotent. This acts as the static analysis step of the graph. Returns tuple of error explanation (if any) and normamized graph.
(normalize-node-def {:keys [context initial-graph]} node-key node-definition)
Given a component definition,
Given a component definition,
(selector-with-deps {:keys [graph context] :as gx-map} signal-key node-key)
Returns a node with its dependencies as a list of keys for a specific selector (signal-key + node-key)
Returns a node with its dependencies as a list of keys for a specific selector (signal-key + node-key)
(signal gx-map signal-key)
(signal gx-map signal-key selector)
Send signal to the graph or to its subset if selectors are passed. Selectors is a set of top level graph keys, signal will be executed on selectors and its dependencies according to signal ordering.
Send signal to the graph or to its subset if selectors are passed. Selectors is a set of top level graph keys, signal will be executed on selectors and its dependencies according to signal ordering.
(topo-sort {:keys [context graph]} signal-key)
Sorts graph nodes according to signal ordering, returns vector of [error, sorted-nodes]
Sorts graph nodes according to signal ordering, returns vector of [error, sorted-nodes]
(with-context-failures {:keys [context] :as gx-map})
Validates context against schema and checks signal dependency errors
Validates context against schema and checks signal dependency errors
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close