package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Focus traverses a Node graph according to a path, reaches a single Node, and calls the given VisitFn on that reached node.
FocusedTransform traverses a datamodel.Node graph, reaches a single Node, and calls the given TransformFn to decide what new node to replace the visited node with.
Get is the equivalent of Focus, but returns the reached node (rather than invoking a callback at the target), and does not yield Progress information.
SelectLinks walks a Node tree and returns a slice of all Links encountered.
WalkAdv is identical to WalkMatching, except it is called for *all* nodes visited (not just matching nodes), together with the reason for the visit.
WalkLocal walks a tree of Nodes, visiting each of them, and calling the given VisitFn on all of them; it does not traverse any links.
WalkMatching walks a graph of Nodes, deciding which to visit by applying a Selector, and calling the given VisitFn on those that the Selector deems a match.
WalkTransforming walks a graph of Nodes, deciding which to alter by applying a Selector, and calls the given TransformFn to decide what new node to replace the visited node with.

# Constants

Tells AdvVisitFn that this node was visited while searching for selection matches.
Tells AdvVisitFn that this node was explicitly selected.
Tells AdvVisitFn that this node is a parent of one that will be explicitly selected.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SkipMe is a signalling "error" which can be used to tell traverse to skip some data.

# Type aliases

AdvVisitFn is like VisitFn, but for use with AdvTraversal: it gets additional arguments describing *why* this node is visited.
LinkTargetNodePrototypeChooser is a function that returns a NodePrototype based on the information in a Link and/or its LinkContext.
TransformFn is like a visitor that can also return a new Node to replace the visited one.
VisitFn is a read-only visitor.
VisitReason provides additional information to traversals using AdvVisitFn.