Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface[T any] interface { Next() T }
func NewRoundRobin ¶
func NewWeightedRoundRobin ¶
func NewWeightedRoundRobin[T any](resources []WeightedResource[T]) Interface[T]
type RoundRobin ¶
type RoundRobin[T any] struct { // contains filtered or unexported fields }
func (*RoundRobin[T]) Next ¶
func (r *RoundRobin[T]) Next() T
type WeightedResource ¶
type WeightedRoundRobin ¶
type WeightedRoundRobin[T any] struct { // contains filtered or unexported fields }
func (*WeightedRoundRobin[T]) Next ¶
func (r *WeightedRoundRobin[T]) Next() T
Click to show internal directories.
Click to hide internal directories.