Liking cljdoc? Tell your friends :D

k16.gx.beta.core


default-contextclj/s

source

failuresclj/s

(failures gx-map)
source

get-component-propsclj/s

(get-component-props graph property-key)
source

graph-dependenciesclj/s

(graph-dependencies graph signal-key)
source

merge-node-failureclj/s

(merge-node-failure gx-map node)
source

node-signalclj/s

(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.
sourceraw docstring

normalizeclj/s

(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.
sourceraw docstring

normalize-node-defclj/s

(normalize-node-def {:keys [context initial-graph]} node-key node-definition)

Given a component definition,

Given a component definition, 
sourceraw docstring

normalize-signal-defclj/s

(normalize-signal-def signal-def)
source

selector-with-depsclj/s

(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)
sourceraw docstring

signalclj/s

(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.
sourceraw docstring

statesclj/s

(states gx-map)
source

topo-sortclj/s

(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]
sourceraw docstring

validate-propsclj/s

(validate-props schema props)
source

valuesclj/s

(values gx-map)
source

with-context-failuresclj/s

(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
sourceraw docstring

with-deps-failuresclj/s

(with-deps-failures gx-map)
source

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

× close