mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
f478046696
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