Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalanceAlgorithm ¶
type LoadBalanceAlgorithm int32
const ( Random LoadBalanceAlgorithm = iota RoundRobin RandomWeight )
func (*LoadBalanceAlgorithm) UnmarshalText ¶
func (l *LoadBalanceAlgorithm) UnmarshalText(text []byte) error
type RandomAlgorithm ¶
type RandomAlgorithm struct {
// contains filtered or unexported fields
}
func (*RandomAlgorithm) Add ¶
func (r *RandomAlgorithm) Add(item Weighting)
type RandomWeightAlgorithm ¶
type RandomWeightAlgorithm struct {
// contains filtered or unexported fields
}
func (*RandomWeightAlgorithm) Add ¶
func (r *RandomWeightAlgorithm) Add(item Weighting)
type RoundRobinAlgorithm ¶
type RoundRobinAlgorithm struct {
// contains filtered or unexported fields
}
func (*RoundRobinAlgorithm) Add ¶
func (r *RoundRobinAlgorithm) Add(item Weighting)
Click to show internal directories.
Click to hide internal directories.