1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-27 13:48:49 +08:00
Dejan Mijic c966a7802d
Integrate manager service
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>
2017-09-23 01:03:27 +02:00
..
2017-09-23 01:03:27 +02:00
2017-09-23 01:03:27 +02:00
2017-09-23 01:03:27 +02:00
2017-09-23 01:03:27 +02:00
2017-09-23 01:03:27 +02:00
2017-09-23 01:03:27 +02:00
2017-09-23 01:03:27 +02:00
2017-09-23 01:03:27 +02:00
2017-09-23 01:03:27 +02:00

go-hostpool

A Go package to intelligently and flexibly pool among multiple hosts from your Go application. Host selection can operate in round robin or epsilon greedy mode, and unresponsive hosts are avoided. 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