MCPcopy
hub / github.com/fabiolb/fabio / filter

Method filter

route/route.go:107–117  ·  view source on GitHub ↗
(skip func(t *Target) bool)

Source from the content-addressed store, hash-verified

105}
106
107func (r *Route) filter(skip func(t *Target) bool) {
108 var clone []*Target
109 for _, t := range r.Targets {
110 if skip(t) {
111 continue
112 }
113 clone = append(clone, t)
114 }
115 r.Targets = clone
116 r.weighTargets()
117}
118
119func (r *Route) setWeight(service string, weight float64, tags []string) int {
120 loop := func(w float64) int {

Callers 10

delRouteMethod · 0.80
EFunction · 0.80
theDocs.all.min.jsFile · 0.80
KaFunction · 0.80
CFunction · 0.80
materialize.min.jsFile · 0.80
nFunction · 0.80
jFunction · 0.80
OeFunction · 0.80

Calls 1

weighTargetsMethod · 0.95

Tested by

no test coverage detected