Documentation ¶
Overview ¶
dwrr is Dynamic Weighted Round Robin
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) Statistics ¶
func (n *Node) Statistics() selector.Statistics
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
func NewSelector ¶
func NewSelector(opts ...SelectorOption) *Selector
type SelectorOption ¶
type SelectorOption func(*Selector)
func WithServiceName ¶
func WithServiceName(name string) SelectorOption
func WithStep ¶
func WithStep(step float64) SelectorOption
Click to show internal directories.
Click to hide internal directories.