|
|
13 yıl önce | |
|---|---|---|
| .gitignore | 13 yıl önce | |
| .travis.yml | 13 yıl önce | |
| README.md | 13 yıl önce | |
| epsilon_greedy.go | 13 yıl önce | |
| epsilon_value_calculators.go | 13 yıl önce | |
| host_entry.go | 13 yıl önce | |
| hostpool.go | 13 yıl önce | |
| hostpool_test.go | 13 yıl önce |
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