Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FallbackChain ¶
type FallbackManager ¶
type FallbackManager struct {
// contains filtered or unexported fields
}
func NewFallbackManager ¶
func NewFallbackManager() *FallbackManager
func (*FallbackManager) GetModel ¶
func (f *FallbackManager) GetModel(source string, statusCode int) string
func (*FallbackManager) Register ¶
func (f *FallbackManager) Register(source, primary string, fallbacks ...string)
func (*FallbackManager) Reset ¶
func (f *FallbackManager) Reset(source string)
type LatencyTracker ¶
type LatencyTracker struct {
// contains filtered or unexported fields
}
func NewLatencyTracker ¶
func NewLatencyTracker() *LatencyTracker
func (*LatencyTracker) FastestModel ¶
func (t *LatencyTracker) FastestModel() string
type WeightedBalancer ¶
type WeightedBalancer struct {
// contains filtered or unexported fields
}
func NewWeightedBalancer ¶
func NewWeightedBalancer() *WeightedBalancer
func (*WeightedBalancer) AddRoute ¶
func (b *WeightedBalancer) AddRoute(model string, weight int)
func (*WeightedBalancer) Select ¶
func (b *WeightedBalancer) Select() string
type WeightedRoute ¶
Click to show internal directories.
Click to hide internal directories.