- Create pkg/mining/miner_factory.go with factory pattern - Support for miner type aliases (e.g., "ttminer" -> "tt-miner") - Add global convenience functions: CreateMiner, IsMinerSupported, etc. - Replace 5 duplicate switch statements in manager.go and service.go - Makes adding new miner types simpler (single registration point) - Full test coverage in miner_factory_test.go 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| database | ||
| mining | ||
| node | ||