MCPcopy Index your code
hub / github.com/labstack/echo / Proxy

Function Proxy

middleware/proxy.go:292–296  ·  view source on GitHub ↗

Proxy returns a Proxy middleware. Proxy middleware forwards the request to upstream server using a configured load balancing technique.

(balancer ProxyBalancer)

Source from the content-addressed store, hash-verified

290//
291// Proxy middleware forwards the request to upstream server using a configured load balancing technique.
292func Proxy(balancer ProxyBalancer) echo.MiddlewareFunc {
293 c := DefaultProxyConfig
294 c.Balancer = balancer
295 return ProxyWithConfig(c)
296}
297
298// ProxyWithConfig returns a Proxy middleware or panics if configuration is invalid.
299//

Callers 2

TestTargetProviderFunction · 0.85
TestFailNextTargetFunction · 0.85

Calls 1

ProxyWithConfigFunction · 0.85

Tested by 2

TestTargetProviderFunction · 0.68
TestFailNextTargetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…