(hc healthcheck.Checker)
| 58 | ) |
| 59 | |
| 60 | func check(hc healthcheck.Checker) error { |
| 61 | r := hc.Check(*timeout) |
| 62 | s := "success" |
| 63 | if !r.Success { |
| 64 | s = "failure" |
| 65 | return fmt.Errorf("%v - %v (healthcheck %s)", hc, r, s) |
| 66 | } |
| 67 | log.Printf("%v - %v (healthcheck %s)", hc, r, s) |
| 68 | return nil |
| 69 | } |
| 70 | |
| 71 | func unquote(s string) string { |
| 72 | if !(strings.HasPrefix(s, `"`) || strings.HasPrefix(s, "`")) { |
no test coverage detected