Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zalando/skipper
/ Apply
Method
Apply
routing/routing.go:172–172 ·
view source on GitHub ↗
(*LBContext)
Source
from the content-addressed store, hash-verified
170
// over the possible endpoints of a load balanced route.
171
type
LBAlgorithm
interface
{
172
Apply(*LBContext) LBEndpoint
173
}
174
175
// LBContext is used to pass data to the load balancer to decide based
Callers
9
selectEndpoint
Method · 0.65
TestHostPatch
Function · 0.65
ServeHTTP
Method · 0.65
TestApply
Function · 0.65
TestConsistentHashBoundedLoadSearch
Function · 0.65
TestConsistentHashKey
Function · 0.65
TestConsistentHashBoundedLoadDistribution
Function · 0.65
BenchmarkRandomAlgorithm
Function · 0.65
StartSpan
Method · 0.65
Implementers
6
Template
eskip/template.go
HostPatch
net/host.go
roundRobin
loadbalancer/algorithm.go
random
loadbalancer/algorithm.go
consistentHash
loadbalancer/algorithm.go
powerOfRandomNChoices
loadbalancer/algorithm.go
Calls
no outgoing calls
Tested by
6
TestHostPatch
Function · 0.52
TestApply
Function · 0.52
TestConsistentHashBoundedLoadSearch
Function · 0.52
TestConsistentHashKey
Function · 0.52
TestConsistentHashBoundedLoadDistribution
Function · 0.52
BenchmarkRandomAlgorithm
Function · 0.52