feat(09-01): add scan control events and cancelled metrics field

- Add LibraryScanCancelled, LibraryScanPaused, LibraryScanResumed events
- Regenerate frontend/src/events.ts via go generate
- Add Cancelled bool field to ScanMetrics struct
This commit is contained in:
2026-03-06 21:28:37 -05:00
parent 08ff00f029
commit c695024241
3 changed files with 17 additions and 0 deletions
+3
View File
@@ -50,6 +50,9 @@ type ScanMetrics struct {
Skipped int64 `json:"skipped"`
Removed int64 `json:"removed"`
// Cancelled is true when the scan was stopped via CancelScan.
Cancelled bool `json:"cancelled"`
// Non-fatal issues encountered during scanning.
Warnings []ScanWarning `json:"warnings"`
}