Documentation
¶
Overview ¶
Package graph provides a graph or interconnected state-machines and their states, based on the dbg telemetry protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Id string
// TODO version schemas
MsgSchema *dbg.DbgMsgStruct
LatestMsgTx *dbg.DbgMsgTx
LatestTimeSum uint64
LatestClock am.Time
ConnId string
}
Client represents a single state machine withing the network graph.
type Connection ¶
type EdgeData ¶
type EdgeData struct {
// machine has a state
MachHas *MachineHas
// machine has an RPC connection to another machine
MachConnectedTo bool
// machine is a child of another machine
MachChildOf bool
// machine has pipes going to another machine
MachPipesTo []*MachPipeTo
// state has relations with other states
StateRelation []*StateRelation
}
type Exportable ¶
type Graph ¶
type Graph struct {
Server *am.Machine
Clients map[string]*Client
// G is a directed graph of machines and states with metadata.
G graph.Graph[string, *Vertex]
// Map is a unidirectional mirror of g, without metadata.
Map graph.Graph[string, *Vertex]
}
func (*Graph) Connection ¶
func (g *Graph) Connection(source, target string) (*Connection, error)
Connection returns a Connection for the given source-target.
func (*Graph) RemoveClient ¶
type MachPipeTo ¶
type MachPipeTo struct {
FromState string
ToState string
MutType am.MutationType
}
type MachineHas ¶
type StateRelation ¶
Click to show internal directories.
Click to hide internal directories.