Documentation
¶
Overview ¶
Package api defines the types for frontend-backend communication
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortInfo ¶
type PortInfo struct {
PortPath string `json:"portPath"` // "/dev/ttys000"
PortType string `json:"portType"` // "virtual", "physical"
}
PortInfo represents a serial port
type Record ¶
type Record struct {
Index int `json:"index"`
Dir string `json:"dir"` // "TX", "RX"
Data string `json:"data"` // hex encoded
Size int `json:"size"`
Match *bool `json:"match,omitempty"` // only for actual
}
Record represents a data record
type State ¶
type State struct {
Mode string `json:"mode"` // "", "record", "compare"
UpperPort string `json:"upperPort"`
LowerPorts []PortInfo `json:"lowerPorts"`
Baseline []Record `json:"baseline"`
Actual []Record `json:"actual"`
Stats Stats `json:"stats"`
}
State represents the complete application state
Click to show internal directories.
Click to hide internal directories.