Check represents a healthcheck instance.
| 205 | |
| 206 | // Check represents a healthcheck instance. |
| 207 | type Check struct { |
| 208 | Config |
| 209 | |
| 210 | lock sync.RWMutex |
| 211 | blocking bool |
| 212 | dryrun bool |
| 213 | start time.Time |
| 214 | failed uint64 |
| 215 | failures uint64 |
| 216 | successes uint64 |
| 217 | state State |
| 218 | result *Result |
| 219 | |
| 220 | update chan Config |
| 221 | notify chan<- *Notification |
| 222 | quit chan bool |
| 223 | } |
| 224 | |
| 225 | // NewCheck returns an initialised Check. |
| 226 | func NewCheck(notify chan<- *Notification) *Check { |
nothing calls this directly
no outgoing calls
no test coverage detected