Progress tracks the progress of healthcheck components for timeout diagnostics. It records which checks have started and completed, along with their durations, to provide useful information when a healthcheck times out. The zero value is usable.
| 21 | // their durations, to provide useful information when a healthcheck times out. |
| 22 | // The zero value is usable. |
| 23 | type Progress struct { |
| 24 | Clock quartz.Clock |
| 25 | mu sync.Mutex |
| 26 | checks map[string]*checkStatus |
| 27 | } |
| 28 | |
| 29 | type checkStatus struct { |
| 30 | startedAt time.Time |
nothing calls this directly
no outgoing calls
no test coverage detected