MCPcopy Create free account
hub / github.com/appleboy/loadbalancer-algorithms / Proxy

Struct Proxy

proxy/proxy.go:29–34  ·  view source on GitHub ↗

Proxy represents a reverse proxy for load balancing algorithms.

Source from the content-addressed store, hash-verified

27
28// Proxy represents a reverse proxy for load balancing algorithms.
29type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected