package graph

Import Path
	/pkg/graph (on go.dev)

Dependency Relation
	imports 14 packages, and imported by 3 packages

Involved Source Files Package graph provides a graph or interconnected state-machines and their states, based on the dbg telemetry protocol.
Package-Level Type Names (total 10)
/* sort by: | */
Client represents a single state machine withing the network graph. ConnId string Id string LatestMTime am.Time LatestMsgTx *dbg.DbgMsgTx LatestTimeSum uint64 TODO version schemas func github.com/pancsta/asyncmachine-go/tools/visualizer.(*Visualizer).Clients() map[string]Client
Edge *EdgeData Source *Vertex Target *Vertex func (*Graph).Connection(source, target string) (*Connection, error)
type Edge = (struct)
machine is a child of another machine machine has an RPC connection to another machine machine has a state machine has pipes going to another machine state has relations with other states
Clients map[string]*Client G is a directed graph of machines and states with metadata. Map is a unidirectional mirror of g, without metadata. Server *am.Machine (*Graph) AddClient(msg *dbg.DbgMsgStruct) error (*Graph) Clear() Clone returns a deep clone of the graph. Connection returns a Connection for the given source-target. DumpGv will create a dot-format *.gv file of the graph. To create an SVG: dot -Tsvg -O path (*Graph) Inspect() (map[string]*MachInspect, error) (*Graph) ParseMsg(id string, msgTx *dbg.DbgMsgTx) (*Graph) RemoveClient(id string) error func New(server *am.Machine) (*Graph, error) func (*Graph).Clone() (*Graph, error) func github.com/pancsta/asyncmachine-go/tools/visualizer.NewRenderer(graph *Graph, logger func(msg string, args ...any)) *visualizer.Renderer
Auto bool Inherited string Multi bool
Child string Conns []string MTime am.Time Pipes map[string][]string Schema am.Schema States []string Tags []string Time uint64 func (*Graph).Inspect() (map[string]*MachInspect, error) func Markdown(inspect map[string]*MachInspect) string func Markup(inspect map[string]*MachInspect) string
TODO use am.Pipe FromState string MutType am.MutationType ToState string
RelType am.Relation
MachId string StateName string
Package-Level Functions (total 4)
AddErrGraph adds [ErrGraph].
Markdown returns a Markdown format of the network graph, with state lists, with a flat hierarchy. It's useful for debugging.
Markup returns an XML format of the network graph, including full schemas, with a nested hierarchy. It's useful for CSS/XPath queries.
func New(server *am.Machine) (*Graph, error)
Package-Level Variables (only one)