Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) StartLevels ¶
StartLevels returns the graph partitioned into levels for ordered startup. Level 0 contains processes with no dependencies — start these first. Each subsequent level can be started after all previous levels are running. Processes within the same level can be started concurrently.
func (*Graph) StopLevels ¶
StopLevels returns the graph partitioned into levels for ordered shutdown. Level 0 contains processes with no dependents — stop these first. Each subsequent level can be stopped after all previous levels finish. Processes within the same level can be stopped concurrently.
func (*Graph) WalkDependents ¶
WalkDependents does a BFS from start following DepsBy edges (forward through the graph: start → dependents → transitive dependents). fn receives each node name. Return false from fn to stop walking deeper from that node.