Mining/pkg/mining
Claude cc8eeab231
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
ax(mining): replace prose comments in auth.go with usage examples
All comments on AuthConfig, DefaultAuthConfig, AuthConfigFromEnv,
DigestAuth, NewDigestAuth, Stop, Middleware, and all private methods
were restating the type signature in prose. Replaced with concrete
call-site examples per AX Principle 2 (comments as usage examples).

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 09:29:03 +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): replace prose comments in auth.go with usage examples 2026-04-02 09:29:03 +01:00
auth_test.go fix: Implement 6 quick wins from 109-finding code review 2025-12-31 15:03:46 +00:00
bufpool.go ax(mining): rename enc to encoder in MarshalJSON for AX Principle 1 2026-04-02 08:06:07 +01:00
circuit_breaker.go ax(mining): replace prose comments with usage examples in circuit_breaker.go 2026-04-02 09:21:25 +01:00
circuit_breaker_test.go ax(mining): rename cfg to configuration in circuit_breaker_test.go 2026-04-02 08:47:09 +01:00
component.go feat: Implement logging functionality for miners with log buffer and retrieval endpoint 2025-12-29 22:10:45 +00:00
config_manager.go ax(mining): replace prose comments with usage examples on LoadMinersConfig/SaveMinersConfig 2026-04-02 08:45:14 +01:00
container.go ax(mining): replace prose comments with usage examples on Container 2026-04-02 09:17:40 +01:00
container_test.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
dual_mining_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
errors.go ax(mining): remove banned fmt import from errors.go 2026-04-02 08:40:59 +01:00
errors_test.go feat: Add rate limiter with cleanup and custom error types 2025-12-31 10:56:26 +00:00
events.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
events_test.go feat: Add context propagation, state sync, and tests 2025-12-31 10:10:39 +00:00
file_utils.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
lethean.go feat(mining): add Lethean pool presets + ProgPoWZ profiles 2026-04-02 07:22:48 +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 prose comment on StopMiner with usage example 2026-04-02 09:24:36 +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 Fix test failures and unused imports after combining PRs 2026-02-02 06:12:37 +00:00
metrics.go ax(mining): replace prose comments with usage examples in metrics.go 2026-04-02 07:45:40 +01:00
miner.go ax(mining): replace prose comments with usage examples on GetType/GetName 2026-04-02 08:35:47 +01:00
miner_factory.go ax(mining): replace banned fmt import with ErrUnsupportedMiner in miner_factory 2026-04-02 07:47:18 +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 banned fmt import with ErrInvalidConfig in Config.Validate 2026-04-02 08:52:52 +01:00
mining_profile.go ax(mining): replace banned errors import with ErrInternal in mining_profile.go 2026-04-02 08:42:39 +01:00
mining_test.go Fix test failures and unused imports after combining PRs 2026-02-02 06:12:37 +00:00
node_service.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
profile_manager.go ax(mining): replace prose comments with usage examples in profile_manager.go 2026-04-02 08:12:59 +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): replace prose comments with usage examples in ratelimiter.go 2026-04-02 08:18:40 +01:00
ratelimiter_test.go feat: Add rate limiter with cleanup and custom error types 2025-12-31 10:56:26 +00:00
repository.go ax(mining): replace prose comments with usage examples in repository.go 2026-04-02 09:04:34 +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): rename mgr to concreteManager (AX Principle 1) 2026-04-02 07:52:05 +01:00
service_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
settings_manager.go ax(mining): replace prose comments with usage examples in settings_manager.go 2026-04-02 08:26:55 +01:00
settings_manager_test.go feat: Add CPU throttling, settings manager, and multi-miner tests 2025-12-30 16:35:02 +00:00
simulated_miner.go ax(mining): replace prose accessor comments with usage examples in SimulatedMiner 2026-04-02 08:16:54 +01:00
stats_collector.go ax(mining): replace prose comment with usage example on FetchJSONStats 2026-04-02 09:03:17 +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): replace prose comment with usage example on startTask 2026-04-02 08:57:18 +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 refactor: Add reliability fixes, centralized version fetching, and CHANGELOG 2025-12-31 13:33:42 +00:00
ttminer_start.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
ttminer_stats.go refactor: Add StatsCollector pattern with miner type identification 2025-12-31 13:02:01 +00:00
version.go ax(mining): replace signature-restating comments with usage examples in version.go 2026-04-02 08:30:02 +01:00
xmrig.go feat: Rename XMRig references to Miner and add miner.cpp for new platform 2025-12-31 16:38:48 +00: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 chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
xmrig_stats.go refactor: Add StatsCollector pattern with miner type identification 2025-12-31 13:02:01 +00:00
xmrig_test.go Fix test failures and unused imports after combining PRs 2026-02-02 06:12:37 +00:00