Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JackyChiu/slb
/ types & classes
Types & classes
9 in github.com/JackyChiu/slb
⨍
Functions
49
◇
Types & classes
9
Struct
Balancer
Balancer is the reverse proxy server that balances requests.
balancer.go:37
Struct
Config
Config models the configuations that is available for the balancer.
config.go:11
Interface
Pool
Pool is an interface for pools with different strategies of distributing work.
balancer.go:19
Struct
leastBusy
leastBusy is a scheduling strategy that looks at the amount of work that the workers have and schedules jobs to the least busy worker.
least_busy.go:11
Struct
node
node.go:9
TypeAlias
nodes
node.go:23
Struct
roundRobin
roundRobin is strategy of scheduling that distributes work by providing the same amount of work to all workers.
round_robin.go:11
Struct
sleepHandler
sleepHandler simulates a route that does work by sleeping.
cmd/servers/server.go:58
Struct
sleepRequest
sleepRequest defines for long to sleep.
cmd/servers/server.go:63