Mining/pkg
snider 3a9f9e32e2 refactor: Add StatsCollector pattern with miner type identification
- Add GetType() method to Miner interface for proper type identification
- Create MinerType constants (MinerTypeXMRig, MinerTypeTTMiner, MinerTypeSimulated)
- Add MinerTypeRegistry for centralized miner type discovery
- Create FetchJSONStats generic helper to reduce HTTP stats code duplication
- Replace fragile string prefix matching in manager.go with GetType() calls
- Simplify xmrig_stats.go and ttminer_stats.go using shared HTTPStatsConfig

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 13:02:01 +00:00
..
database refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00
logging feat: Add structured logging package 2025-12-31 11:18:22 +00:00
mining refactor: Add StatsCollector pattern with miner type identification 2025-12-31 13:02:01 +00:00
node refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00