Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{
RotateAmount: 1,
}
View Source
var ErrNoItems = errors.New("no items")
ErrNoItems specified for the algorithm
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
Stats Stats
// contains filtered or unexported fields
}
Item stores value & stats of each element in RoundRobin
type RoundRobin ¶
type RoundRobin struct {
Options Options
// contains filtered or unexported fields
}
RoundRobin iterates over the items in a round robin fashion
func NewWithOptions ¶
func NewWithOptions(options Options, items ...string) (*RoundRobin, error)
New returns a new RoundRobin structure with custom options
Click to show internal directories.
Click to hide internal directories.