MCPcopy Create free account

hub / github.com/JackyChiu/slb / functions

Functions49 in github.com/JackyChiu/slb

↓ 7 callersFunctionnewNodes
(hosts []string)
node.go:25
↓ 4 callersMethodString
()
node.go:61
↓ 3 callersMethodDispatch
()
balancer.go:20
↓ 3 callersMethodLen
()
node.go:33
↓ 3 callersMethodcomplete
(host string)
least_busy.go:58
↓ 3 callersFunctionnewLeastBusy
(hosts []string)
least_busy.go:17
↓ 3 callersFunctionnewRoundRobin
(hosts []string)
round_robin.go:18
↓ 2 callersMethodPop
()
node.go:53
↓ 2 callersMethodPush
(x interface{})
node.go:47
↓ 2 callersMethodmean
()
node.go:80
↓ 1 callersMethodComplete
(res *http.Response)
balancer.go:21
↓ 1 callersFunctionNewBalancer
NewBalancer creates a new balancer to balance requests between hosts and uses specified strategy.
balancer.go:44
↓ 1 callersFunctionNewPool
NewPool provides a pool with specified strategy.
balancer.go:25
↓ 1 callersFunctionParseConfig
ParseConfig reads a json file and maps it to a Config object.
config.go:17
↓ 1 callersFunctionStartServer
StartServer starts up a indiviual server running on specified port.
cmd/servers/server.go:44
↓ 1 callersMethodSwap
(i, j int)
node.go:41
↓ 1 callersMethodbalance
()
round_robin.go:46
↓ 1 callersMethodbalance
()
least_busy.go:39
↓ 1 callersMethodcomplete
(host string)
round_robin.go:64
↓ 1 callersMethoddispatch
()
round_robin.go:57
↓ 1 callersMethoddispatch
()
least_busy.go:50
↓ 1 callersFunctionnewNode
(host string, index int)
node.go:15
↓ 1 callersFunctionrandomPause
()
cmd/requester/requester.go:37
↓ 1 callersFunctionrandonDuration
()
cmd/requester/requester.go:42
↓ 1 callersMethodstandardDeviation
()
node.go:88
MethodComplete
(res *http.Response)
round_robin.go:42
MethodComplete
(res *http.Response)
least_busy.go:35
MethodDirector
Director directs the request to the node that was dispatched by pool.
balancer.go:58
MethodDispatch
()
round_robin.go:36
MethodDispatch
()
least_busy.go:29
MethodLess
(i, j int)
node.go:37
MethodModifyResponse
ModifyResponse tells the pool that the request was handled.
balancer.go:67
FunctionMustParseConfig
MustParseConfig parse and config file and panics on failure.
config.go:29
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
cmd/servers/server.go:68
MethodString
()
round_robin.go:73
MethodString
()
least_busy.go:71
FunctionTestBalancer
(t *testing.T)
balancer_test.go:13
FunctionTestLeastBusy_Dispatch
(t *testing.T)
least_busy_test.go:10
FunctionTestLeastBusy_complete
(t *testing.T)
least_busy_test.go:26
FunctionTestNodes_Len
(t *testing.T)
node_test.go:29
FunctionTestNodes_Pop
(t *testing.T)
node_test.go:47
FunctionTestNodes_Push
(t *testing.T)
node_test.go:59
FunctionTestNodes_Swap
(t *testing.T)
node_test.go:34
FunctionTestNodes_newNodes
(t *testing.T)
node_test.go:17
FunctionTestRoundRobin_Dispatch
(t *testing.T)
round_robin_test.go:10
FunctionTestRoundRobin_complete
(t *testing.T)
round_robin_test.go:32
Functionmain
()
cmd/servers/server.go:16
Functionmain
()
cmd/slb/slb.go:12
Functionmain
()
cmd/requester/requester.go:13