(endpoint string, failures int64)
| 578 | } |
| 579 | |
| 580 | func CircuitBreakerOpened(endpoint string, failures int64) string { |
| 581 | message := fmt.Sprintf("%s for endpoint %s after %d failures", CircuitBreakerOpenedMessage, endpoint, failures) |
| 582 | return appendJSONIfDebug(message, map[string]interface{}{ |
| 583 | "endpoint": endpoint, |
| 584 | "failures": failures, |
| 585 | }) |
| 586 | } |
| 587 | |
| 588 | func CircuitBreakerReopened(endpoint string) string { |
| 589 | message := fmt.Sprintf("%s for endpoint %s due to failure in half-open state", CircuitBreakerReopenedMessage, endpoint) |
no test coverage detected