Versions in this module Expand all Collapse all v0 v0.1.0 Dec 24, 2019 Changes in this version + func Version() string + type EpsilonValueCalculator interface + CalcValueFromAvgResponseTime func(float64) float64 + type HostPool interface + Close func() + Get func() HostPoolResponse + Hosts func() []string + ResetAll func() + func New(hosts []string) HostPool + func NewEpsilonGreedy(hosts []string, decayDuration time.Duration, calc EpsilonValueCalculator) HostPool + type HostPoolResponse interface + Host func() string + Mark func(error) + type LinearEpsilonValueCalculator struct + func (c *LinearEpsilonValueCalculator) CalcValueFromAvgResponseTime(v float64) float64 + type LogEpsilonValueCalculator struct + func (c *LogEpsilonValueCalculator) CalcValueFromAvgResponseTime(v float64) float64 + type PolynomialEpsilonValueCalculator struct + Exp float64 + func (c *PolynomialEpsilonValueCalculator) CalcValueFromAvgResponseTime(v float64) float64