Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundRobin ¶ added in v0.1.1
type RoundRobin struct {
// contains filtered or unexported fields
}
func NewRR ¶
func NewRR() *RoundRobin
func (*RoundRobin) Add ¶ added in v0.1.1
func (r *RoundRobin) Add(data any)
func (*RoundRobin) IsNil ¶ added in v0.1.1
func (r *RoundRobin) IsNil() bool
func (*RoundRobin) Next ¶ added in v0.1.1
func (r *RoundRobin) Next() any
type WeightedRoundRobin ¶ added in v0.1.1
type WeightedRoundRobin struct {
// contains filtered or unexported fields
}
func NewWRR ¶
func NewWRR() *WeightedRoundRobin
func (*WeightedRoundRobin) Add ¶ added in v0.1.1
func (r *WeightedRoundRobin) Add(data ...Source)
func (*WeightedRoundRobin) IsNil ¶ added in v0.1.1
func (r *WeightedRoundRobin) IsNil() bool
func (*WeightedRoundRobin) Next ¶ added in v0.1.1
func (r *WeightedRoundRobin) Next() Source
Click to show internal directories.
Click to hide internal directories.