MCPcopy Create free account
hub / github.com/zalando/skipper / Match

Method Match

predicates/traffic/segment.go:80–84  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

78}
79
80func (p *segmentPredicate) Match(req *http.Request) bool {
81 r := routing.FromContext(req.Context(), randomValue, p.randFloat64)
82 // min == max defines a never-matching interval and always yields false
83 return p.min <= r && r < p.max
84}

Callers

nothing calls this directly

Calls 2

FromContextFunction · 0.92
ContextMethod · 0.80

Tested by

no test coverage detected