Documentation
¶
Overview ¶
Package service provides the core business logic
Index ¶
- type EventCallback
- type LowerConn
- type Service
- func (s *Service) Clear() api.State
- func (s *Service) GetState() api.State
- func (s *Service) Init() (api.State, error)
- func (s *Service) RefreshPorts() api.State
- func (s *Service) SelectLowerPort(portPath string) api.State
- func (s *Service) SetBaseline(records []api.Record)
- func (s *Service) SetEventCallback(cb EventCallback)
- func (s *Service) StartCompare() (api.State, error)
- func (s *Service) StartRecord() (api.State, error)
- func (s *Service) Stop() api.State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventCallback ¶
type EventCallback func(event string, data interface{})
EventCallback is called when state changes
type LowerConn ¶
type LowerConn struct {
PortPath string
PortType string // "virtual" or "physical"
Conn transport.Transport
}
LowerConn represents a lower port connection
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides the core recording and comparison functionality
func (*Service) RefreshPorts ¶
RefreshPorts refreshes the port list
func (*Service) SelectLowerPort ¶
SelectLowerPort selects a lower port for communication
func (*Service) SetBaseline ¶
SetBaseline sets the baseline data for testing
func (*Service) SetEventCallback ¶
func (s *Service) SetEventCallback(cb EventCallback)
SetEventCallback sets the event callback
func (*Service) StartCompare ¶
StartCompare starts compare mode
func (*Service) StartRecord ¶
StartRecord starts recording mode
Click to show internal directories.
Click to hide internal directories.