• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..11-Oct-2018-

LICENSEH A D11-Oct-20181 KiB2217

README.mdH A D11-Oct-2018564 1814

epsilon_greedy.goH A D11-Oct-20185.8 KiB221171

epsilon_value_calculators.goH A D11-Oct-20181.5 KiB4122

host_entry.goH A D11-Oct-20181.4 KiB6352

hostpool.goH A D11-Oct-20185.6 KiB244180

README.md

1go-hostpool
2===========
3
4A Go package to intelligently and flexibly pool among multiple hosts from your Go application.
5Host selection can operate in round robin or epsilon greedy mode, and unresponsive hosts are
6avoided.
7Usage example:
8
9```go
10hp := hostpool.NewEpsilonGreedy([]string{"a", "b"}, 0, &hostpool.LinearEpsilonValueCalculator{})
11hostResponse := hp.Get()
12hostname := hostResponse.Host()
13err := _ // (make a request with hostname)
14hostResponse.Mark(err)
15```
16
17View more detailed documentation on [godoc.org](http://godoc.org/github.com/bitly/go-hostpool)
18