Proxy represents a reverse proxy for load balancing algorithms.
| 27 | |
| 28 | // Proxy represents a reverse proxy for load balancing algorithms. |
| 29 | type Proxy struct { |
| 30 | name string |
| 31 | proxy *httputil.ReverseProxy |
| 32 | loading uint32 |
| 33 | health *health.ProxyHealth |
| 34 | } |
| 35 | |
| 36 | // ServeHTTP handles the incoming HTTP request and forwards it to the underlying proxy server. |
| 37 | // It increments the load counter by 1 before forwarding the request and decrements it by the given value after the request is processed. |
nothing calls this directly
no outgoing calls
no test coverage detected