Documentation ¶
Overview ¶
Package pool provides an application load balancer pool
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MechanismLookup = map[string]Mechanism{ "rr": RoundRobin, "fr": FirstResponse, "fgr": FirstGoodResponse, "nlm": NewestLastModified, "tsm": TimeSeriesMerge, }
MechanismLookup provides for looking up Mechanisms by name
View Source
var MechanismValues = map[Mechanism]string{}
MechanismValues provides for looking up Mechanism by names
Functions ¶
This section is empty.
Types ¶
type Mechanism ¶
type Mechanism byte
Mechanism defines the load balancing mechanism identifier type
const ( // RoundRobin defines the Basic Round Robin load balancing mechanism RoundRobin Mechanism = iota // FirstResponse defines the First Response load balancing mechanism FirstResponse // FirstGoodResponse defines the First Good Response load balancing mechanism FirstGoodResponse // NewestLastModified defines the Newest Last-Modified load balancing mechanism NewestLastModified // TimeSeriesMerge defines the Time Series Merge load balancing mechanism TimeSeriesMerge )
func GetMechanismByName ¶
GetMechanismByName returns the Mechanism value and True if the mechanism name is known
Click to show internal directories.
Click to hide internal directories.