complete returns a Result for a completed healthcheck.
(start time.Time, msg string, success bool, err error)
| 146 | |
| 147 | // complete returns a Result for a completed healthcheck. |
| 148 | func complete(start time.Time, msg string, success bool, err error) *Result { |
| 149 | // TODO(jsing): Make this clock skew safe. |
| 150 | duration := time.Since(start) |
| 151 | return &Result{msg, success, duration, err} |
| 152 | } |
| 153 | |
| 154 | // Notification stores a status notification for a healthcheck. |
| 155 | type Notification struct { |