Documentation
¶
Overview ¶
Package tree provides tree visualization logic for workflow debugging.
Package tree provides tree visualization logic for workflow debugging. This handles the construction and traversal of the workflow call tree for rendering in the TUI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSubWorkflowChildren ¶
AddSubWorkflowChildren adds the calls from a subworkflow as children of the given node.
func AggregateStatus ¶
AggregateStatus determines the overall status from multiple calls.
func EarliestStart ¶
EarliestStart returns the earliest start time from a list of calls.
Types ¶
type TreeNode ¶
type TreeNode struct {
ID string
Name string
Type NodeType
Status string
Duration time.Duration
Start time.Time
End time.Time
Expanded bool
Children []*TreeNode
Parent *TreeNode
CallData *workflow.Call
SubWorkflowID string
Depth int
}
TreeNode represents a node in the workflow call tree.
func GetVisibleNodes ¶
GetVisibleNodes returns a flat list of visible nodes for rendering.
Click to show internal directories.
Click to hide internal directories.