FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

hlts2/round-robin: faster round-robin balancing algorithm written in golang · GitHub

Latest commit

 

History

32 Commits

Folders and files

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

Stars

62 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL