Mining/pkg/mining
Claude 9096452ff1
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
ax(mining): rename msg to clientMessage in wsClient.readPump
AX Principle 1 — predictable names over short names. `msg` required
reading the struct to understand what it contained; `clientMessage`
is self-describing at the call site.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 17:55:41 +01:00
..
component feat: Implement logging functionality for miners with log buffer and retrieval endpoint 2025-12-29 22:10:45 +00:00
auth.go ax(mining): rename da receiver to digestAuth and ha1/ha2 to hashA1/hashA2 in auth.go 2026-04-02 17:41:38 +01:00
auth_test.go ax(mining): rename cfg to authConfig in auth_test.go 2026-04-02 13:05:33 +01:00
bufpool.go ax(mining): replace prose comment with usage example on bufferPool 2026-04-02 12:58:24 +01:00
circuit_breaker.go ax(mining): rename cb receiver to circuitBreaker in CircuitBreaker methods 2026-04-02 17:37:00 +01:00
circuit_breaker_test.go ax(mining): remove prose description comments from circuit_breaker_test 2026-04-02 16:35:50 +01:00
component.go ax(mining): replace prose comment with usage example on GetComponentFS 2026-04-02 10:07:18 +01:00
config_manager.go ax(mining): remove banned fmt import from config_manager.go 2026-04-02 16:04:52 +01:00
container.go ax(mining): replace prose field comments with usage examples in ContainerConfig 2026-04-02 16:47:16 +01:00
container_test.go ax(mining): rename TestNewContainer and TestDefaultContainerConfig to follow TestFilename_Function_{Good,Bad,Ugly} convention 2026-04-02 14:22:01 +01:00
dual_mining_test.go ax(mining): fix test naming and comment style in dual_mining_test.go 2026-04-02 16:13:48 +01:00
errors.go ax(mining): remove ErrCodeInternal alias in favour of canonical ErrCodeInternalError 2026-04-02 17:52:03 +01:00
errors_test.go ax(mining): remove banned errors import from errors_test.go 2026-04-02 14:10:49 +01:00
events.go ax(mining): rename msg to clientMessage in wsClient.readPump 2026-04-02 17:55:41 +01:00
events_test.go feat: Add context propagation, state sync, and tests 2025-12-31 10:10:39 +00:00
file_utils.go ax(mining): remove banned fmt import from file_utils.go 2026-04-02 16:04:07 +01:00
lethean.go ax(mining): remove prose comment that restates constant name 2026-04-02 16:44:39 +01:00
lethean_test.go feat(mining): add Lethean pool presets + ProgPoWZ profiles 2026-04-02 07:22:48 +01:00
manager.go ax(mining): replace banned strings import in node_service with package-local containsStr 2026-04-02 17:27:29 +01:00
manager_interface.go feat: Enhance mining configuration management and API documentation 2025-12-07 16:26:18 +00:00
manager_race_test.go test: Add race condition tests and fix AVG float64 scan bug 2025-12-31 11:07:29 +00:00
manager_test.go ax(mining): rename mu and eventHubMu to mutex and eventHubMutex in Manager 2026-04-02 14:27:23 +01:00
metrics.go ax(mining): replace prose description with usage example on DefaultMetrics 2026-04-02 17:19:00 +01:00
miner.go ax(mining): replace banned fmt.Errorf with package error constructors in miner.go 2026-04-02 17:44:08 +01:00
miner_factory.go ax(mining): replace banned strings import with unicode in miner_factory.go 2026-04-02 16:10:02 +01:00
miner_factory_test.go refactor: Add MinerFactory to centralize miner instantiation 2025-12-31 11:12:33 +00:00
mining.go ax(mining): replace prose GetType comment with usage example 2026-04-02 16:48:10 +01:00
mining_profile.go ax(mining): replace prose type comments with usage examples in mining_profile.go 2026-04-02 13:15:17 +01:00
mining_test.go ax(mining): rename mining_test.go functions to TestFilename_Function_{Good,Bad,Ugly} convention 2026-04-02 11:49:07 +01:00
node_service.go ax(mining): remove ErrCodeInternal alias in favour of canonical ErrCodeInternalError 2026-04-02 17:52:03 +01:00
profile_manager.go ax(mining): replace banned fmt.Errorf with project-native error constructors in profile_manager 2026-04-02 16:17:33 +01:00
profile_manager_test.go test: Add comprehensive profile_manager_test.go (TEST-CRIT-2) 2025-12-31 15:20:00 +00:00
ratelimiter.go ax(mining): rename rl receiver to limiter in RateLimiter methods 2026-04-02 17:23:02 +01:00
ratelimiter_test.go ax(mining): rename ratelimiter tests to TestFilename_Function_{Good,Bad,Ugly} pattern 2026-04-02 09:43:12 +01:00
repository.go ax(mining): replace implementation-describing comment with call-site example on saveUnlocked 2026-04-02 17:54:37 +01:00
repository_test.go test: Add error path unit tests for context cancellation and cleanup 2025-12-31 13:04:20 +00:00
service.go ax(mining): remove ErrCodeInternal alias in favour of canonical ErrCodeInternalError 2026-04-02 17:52:03 +01:00
service_test.go ax(mining): rename service_test.go functions to TestFilename_Function_Good convention 2026-04-02 11:44:00 +01:00
settings_manager.go ax(mining): remove banned fmt import from settings_manager.go 2026-04-02 16:05:34 +01:00
settings_manager_test.go ax(mining): rename settings_manager tests to Good/Bad/Ugly convention 2026-04-02 10:23:40 +01:00
simulated_miner.go ax(mining): replace prose comments with usage examples in simulated_miner.go 2026-04-02 16:56:59 +01:00
stats_collector.go ax(mining): remove banned encoding/json import from stats_collector.go 2026-04-02 17:20:57 +01:00
stats_collector_test.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
supervisor.go ax(mining): rename abbreviated parameter st to supervisedTask in startTask 2026-04-02 17:15:01 +01:00
syslog_unix.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
syslog_windows.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
throttle_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
ttminer.go ax(mining): replace prose comment with usage example on MinerTypeTTMiner 2026-04-02 17:38:42 +01:00
ttminer_start.go ax(mining): replace prose comment with usage example on TTMiner.Start 2026-04-02 16:58:02 +01:00
ttminer_stats.go ax(mining): replace prose comment with usage example on TTMiner.GetStats 2026-04-02 17:07:57 +01:00
version.go ax(mining): replace encoding/json with internal UnmarshalJSON in version.go 2026-04-02 17:07:00 +01:00
xmrig.go ax(mining): replace prose comments with usage examples on xmrig.go 2026-04-02 17:31:27 +01:00
xmrig_gpu_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
xmrig_start.go ax(mining): replace prose comment with usage example on addCliArgs 2026-04-02 17:48:46 +01:00
xmrig_stats.go ax(mining): replace prose comment with usage example on GetStats 2026-04-02 16:14:50 +01:00
xmrig_test.go Fix test failures and unused imports after combining PRs 2026-02-02 06:12:37 +00:00