Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
New creates a default traverser, starting from objects/queries of class.
Functions ¶
func IsPartialError ¶
Types ¶
type Errors ¶
type Errors struct {
// contains filtered or unexported fields
}
Errors is a goroutine-safe collection of unique errors.
type PartialError ¶
type PartialError struct{ Err error }
PartialError indicates some errors were encountered but there are still some results.
func (*PartialError) Error ¶
func (e *PartialError) Error() string
type Start ¶
type Start struct { Class korrel8r.Class // Start class. Objects []korrel8r.Object // Start objects, must be of Start class. Queries []korrel8r.Query // Queries for start objects, must be of Start class. }
Start point information for graph traversal.
type Traverser ¶
type Traverser interface { // Goals traverses all paths from start objects to all goal classes. Goals(ctx context.Context, start Start, goals []korrel8r.Class) (*graph.Graph, error) // Neighbours traverses to all neighbours of the start objects, traversing links up to the given depth. Neighbours(ctx context.Context, start Start, depth int) (*graph.Graph, error) }
Traverser traverses a graph, filling in [Node.Result], [Node.Queries] and [Line.Queries]. A korrel8r.Constraint can be set on the context if needed.
Click to show internal directories.
Click to hide internal directories.