randomWRR is a struct that contains weighted items implement weighted random algorithm.
| 36 | |
| 37 | // randomWRR is a struct that contains weighted items implement weighted random algorithm. |
| 38 | type randomWRR struct { |
| 39 | items []*weightedItem |
| 40 | // Are all item's weights equal |
| 41 | equalWeights bool |
| 42 | } |
| 43 | |
| 44 | // NewRandom creates a new WRR with random. |
| 45 | func NewRandom() WRR { |
nothing calls this directly
no outgoing calls
no test coverage detected