MCPcopy
hub / github.com/caddyserver/caddy / Fails

Method Fails

modules/caddyhttp/reverseproxy/hosts.go:189–191  ·  view source on GitHub ↗

Fails returns the number of recent failures with the upstream.

()

Source from the content-addressed store, hash-verified

187
188// Fails returns the number of recent failures with the upstream.
189func (h *Host) Fails() int {
190 return int(h.fails.Load())
191}
192
193// activeHealthPasses returns the number of consecutive active health check passes with the upstream.
194func (h *Host) activeHealthPasses() int {

Calls 1

LoadMethod · 0.80