rcourtman
f478046696
refactor(api): Add interfaces to handlers for testability
Extract interfaces from concrete monitor type dependencies:
alerts.go:
- Add AlertManager, ConfigPersistence, AlertMonitor interfaces
- Change AlertHandlers to accept AlertMonitor interface
notifications.go:
- Add NotificationManager, NotificationConfigPersistence interfaces
- Add NotificationMonitor interface
- Change NotificationHandlers to accept NotificationMonitor interface
updates.go:
- Add UpdatesMonitor interface
- Change UpdatesHandlers to accept interface
audit_handlers.go:
- Update to use interface-based injection
profile_suggestions.go:
- Minor interface alignment
Benefits:
- Handlers can now be tested with mock implementations
- Decouples handlers from concrete monitoring.Monitor type
- Works with monitor_wrappers.go added in previous commit
2026-01-19 19:21:46 +00:00
..
2025-12-29 17:25:21 +00:00
2026-01-04 17:57:51 +00:00
2026-01-01 22:29:15 +00:00
2026-01-19 19:20:49 +00:00
2026-01-13 23:38:20 +00:00
2026-01-19 19:21:46 +00:00
2025-12-02 22:31:44 +00:00
2025-12-29 17:25:21 +00:00
2026-01-17 14:43:28 +00:00
2025-12-29 17:25:21 +00:00
2026-01-03 11:14:17 +00:00
2026-01-15 21:10:55 +00:00
2025-12-02 14:48:57 +00:00
2026-01-09 19:16:34 +00:00
2026-01-10 15:25:28 +00:00
2026-01-07 17:56:07 +00:00
2026-01-17 14:42:27 +00:00
2025-12-29 17:25:21 +00:00
2025-12-29 17:25:21 +00:00
2025-12-12 23:13:40 +00:00
2026-01-17 14:42:52 +00:00
2026-01-17 22:31:02 +00:00
2026-01-18 15:16:37 +00:00
2026-01-15 21:10:55 +00:00
2026-01-18 13:41:00 +00:00
2026-01-01 22:29:15 +00:00
2025-12-31 23:07:01 +00:00
2025-12-29 17:25:21 +00:00
2025-12-29 17:25:21 +00:00
2025-12-29 17:25:21 +00:00
2025-11-26 14:10:21 +00:00
2026-01-01 22:29:15 +00:00
2026-01-02 14:22:40 +00:00
2026-01-01 22:29:15 +00:00
2026-01-06 17:41:25 +00:00