(endpoint string)
| 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) |
| 590 | return appendJSONIfDebug(message, map[string]interface{}{ |
| 591 | "endpoint": endpoint, |
| 592 | }) |
| 593 | } |
| 594 | |
| 595 | func CircuitBreakerClosed(endpoint string, successes int64) string { |
| 596 | message := fmt.Sprintf("%s for endpoint %s after %d successful requests", CircuitBreakerClosedMessage, endpoint, successes) |
no test coverage detected