mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-02 22:17:10 +08:00

Setup top-level glide dependencies file. Migrated all of the manager service code into this repository. Fixed docker build procedure. Extracted executable to the top-level. Signed-off-by: Dejan Mijic <dejan@mainflux.com>
14 lines
324 B
Go
14 lines
324 B
Go
package hostpool
|
|
|
|
import (
|
|
"github.com/bitly/go-hostpool"
|
|
)
|
|
|
|
func ExampleNewEpsilonGreedy() {
|
|
hp := hostpool.NewEpsilonGreedy([]string{"a", "b"}, 0, &hostpool.LinearEpsilonValueCalculator{})
|
|
hostResponse := hp.Get()
|
|
hostname := hostResponse.Host()
|
|
err := nil // (make a request with hostname)
|
|
hostResponse.Mark(err)
|
|
}
|