Mining/pkg/database
snider b454bbd6d6 feat: Add context propagation, state sync, and tests
- Add context.Context to ManagerInterface methods (StartMiner, StopMiner, UninstallMiner)
- Add WebSocket state sync on client connect (sends current miner states)
- Add EventStateSync event type and SetStateProvider method
- Add manager lifecycle tests (idempotent stop, context cancellation, shutdown timeout)
- Add database tests (initialization, hashrate storage, stats)
- Add EventHub tests (creation, broadcast, client count, state provider)
- Update all test files for new context-aware API

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 10:10:39 +00:00
..
database.go refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00
database_test.go feat: Add context propagation, state sync, and tests 2025-12-31 10:10:39 +00:00
hashrate.go refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00
session.go refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00