Versions in this module Expand all Collapse all v2 v2.2.0 May 19, 2025 Changes in this version type Graph + func (g *Graph) Stats() Stats v2.1.0 May 15, 2025 Changes in this version + type BidirectionalEdgeErr struct + Src string + Tgt string + func (e BidirectionalEdgeErr) Error() string + type CycleErr struct + Src string + Tgt string + func (e CycleErr) Error() string + type Edge struct + Key string + Source string + Target string + type Graph struct + LastCheck []int64 + func NewSoAGraph() *Graph + func (g *Graph) AddEdge(src, tgt string) error + func (g *Graph) AddVertex(key string, label string, healthy bool) int + func (g *Graph) ClearHealthyStatus() + func (g *Graph) Find(key string) (Vertex, error) + func (g *Graph) GraphStats() Stats + func (g *Graph) Path(srcKey, tgtKey string) (Subgraph, error) + func (g *Graph) SetVertexHealth(key string, health bool) error + func (g *Graph) StartHealthCheckLoop(ctx context.Context, checkInterval time.Duration) + func (g *Graph) VertexDependencies(key string, all bool) (Subgraph, error) + func (g *Graph) VertexDependents(key string, all bool) (Subgraph, error) + func (g *Graph) VertexNeighbors(key string) (Subgraph, error) + type Stats struct + TotalEdges int + TotalHealthyVertices int + TotalUnhealthyVertices int + TotalVertices int + UnhealthyVertices []Vertex + type Subgraph struct + Edges []Edge + Vertices []Vertex + type Vertex struct + Healthy bool + Key string + Label string + LastCheck int64 + type VertexNotFoundErr struct + Key string + func (e VertexNotFoundErr) Error() string + type VertexPathErr struct + Dst string + Src string + func (e VertexPathErr) Error() string