MCPcopy
hub / github.com/labstack/echo / Next

Method Next

middleware/proxy_test.go:880–884  ·  view source on GitHub ↗
(c *echo.Context)

Source from the content-addressed store, hash-verified

878}
879
880func (b *customBalancer) Next(c *echo.Context) (*ProxyTarget, error) {
881 ctx := context.WithValue(c.Request().Context(), testContextKey("FROM_BALANCER"), "CUSTOM_BALANCER")
882 c.SetRequest(c.Request().WithContext(ctx))
883 return b.target, nil
884}
885
886type sequenceBalancer struct {
887 targets []*ProxyTarget

Callers

nothing calls this directly

Calls 3

testContextKeyTypeAlias · 0.85
RequestMethod · 0.80
SetRequestMethod · 0.80

Tested by

no test coverage detected