Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BreakResponseCode int `json:"break_response_code"`
BreakResponseBody *string `json:"break_response_body,omitempty"`
BreakResponseHeaders []Header `json:"break_response_headers,omitempty"`
MaxBreakerSec int `json:"max_breaker_sec"`
Unhealthy UnHealthCheck `json:"unhealthy"`
Healthy HealthCheck `json:"healthy"`
}
type HealthCheck ¶
type Plugin ¶
type Plugin struct {
base.BasePlugin
// contains filtered or unexported fields
}
func (*Plugin) RunRequestPhase ¶
func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult
RunRequestPhase performs the breaker decision and, on continuation, registers one request-local upstream-status observer.
type State ¶
type State struct {
// contains filtered or unexported fields
}
State owns the APISIX process-local breaker counters shared by every route and plugin instance in overlapping HTTP generations.