NumRequests returns the number of active requests to the upstream.
()
| 182 | |
| 183 | // NumRequests returns the number of active requests to the upstream. |
| 184 | func (h *Host) NumRequests() int { |
| 185 | return int(h.numRequests.Load()) |
| 186 | } |
| 187 | |
| 188 | // Fails returns the number of recent failures with the upstream. |
| 189 | func (h *Host) Fails() int { |
no test coverage detected