|
|
пре 13 година | |
|---|---|---|
| .gitignore | пре 13 година | |
| .travis.yml | пре 13 година | |
| README.md | пре 13 година | |
| epsilon_greedy.go | пре 13 година | |
| epsilon_value_calculators.go | пре 13 година | |
| host_entry.go | пре 13 година | |
| hostpool.go | пре 13 година | |
| hostpool_test.go | пре 13 година |
Intelligently and flexibly pool among multiple hosts from your Go application. Usage example:
hp := hostpool.NewEpsilonGreedy([]string{"a", "b"}, 0, &hostpool.LinearEpsilonValueCalculator{})
hostResponse := hp.Get()
hostname := hostResponse.Host()
err := _ // (make a request with hostname)
hostResponse.Mark(err)
View more detailed documentation on godoc.org