Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

faster round-robin balancing algorithm written in golang

License

Notifications You must be signed in to change notification settings

hlts2/round-robin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

32 Commits

Repository files navigation

round-robin

round-robin is balancing algorithm written in golang

Installation

go get github.com/hlts2/round-robin

Example

rr, _ := roundrobin.New(
&url.URL{Host: "192.168.33.10"},
&url.URL{Host: "192.168.33.11"},
&url.URL{Host: "192.168.33.12"},
&url.URL{Host: "192.168.33.13"},
)

rr.Next() // {Host: "192.168.33.10"}
rr.Next() // {Host: "192.168.33.11"}
rr.Next() // {Host: "192.168.33.12"}
rr.Next() // {Host: "192.168.33.13"}
rr.Next() // {Host: "192.168.33.10"}
rr.Next() // {Host: "192.168.33.11"}

Author

hlts2

LICENSE

round-robin released under MIT license, refer LICENSE file.

About

faster round-robin balancing algorithm written in golang

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages