Documentation
¶
Overview ¶
Package sequence generates protocol sequence diagrams from packet captures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagram ¶
Diagram generates sequence diagrams from events.
func (*Diagram) ToPlantUML ¶
ToPlantUML generates a PlantUML sequence diagram.
type Event ¶
type Event struct {
Timestamp float64 `json:"timestamp"`
Source string `json:"source"`
Dest string `json:"dest"`
Protocol string `json:"protocol"`
Info string `json:"info"`
Latency float64 `json:"latency_ms,omitempty"`
}
Event represents a protocol event in a sequence.
type LatencyStats ¶
type LatencyStats struct {
Min float64 `json:"min_ms"`
Max float64 `json:"max_ms"`
Avg float64 `json:"avg_ms"`
Count int `json:"count"`
}
LatencyStats computes latency statistics from events.
func ComputeLatency ¶
func ComputeLatency(events []Event) *LatencyStats
ComputeLatency computes request-response latency statistics.
Click to show internal directories.
Click to hide internal directories.