Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item interface {
WeightN() int
}
Item is a generic item to be selected
note: the Weight is no use for rrBalancer, only used for weightBalancer and any negative weight value will be treated as positive. the weight value 0 means the item was disabled, if all of iteams weight equals 0, Next() return nil
Click to show internal directories.
Click to hide internal directories.