Commit Graph

3 Commits

Author SHA1 Message Date
yusing
0775ac0b92 feat(docs): add health check and monitor packages README; mermaid styling fix 2026-01-08 20:32:16 +08:00
yusing
1c1e50a35b fix(health): correct context handling, move NewMonitor, and improve docker health check errors
- Correct BaseContext nil check in Context() method
- Move NewMonitor from monitor.go to new.go
- Export ErrDockerHealthCheckFailedTooManyTimes and add ErrDockerHealthCheckNotAvailable
- Return ErrDockerHealthCheckNotAvailable when container has no health check configured
- Only log first docker health check failure and skip logging for ErrDockerHealthCheckNotAvailable
- Use mon.Context() instead of mon.task.Context() to avoid nil panic
2026-01-08 18:14:14 +08:00
yusing
1c78e19a4a refactor: move internal/watcher/health to internal/health 2026-01-08 15:11:04 +08:00