Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Iterators []IteratorConfig `konaf:"iterators"`
}
func LoadFromBytes ¶
func LoadFromFile ¶
type IteratorConfig ¶
func (IteratorConfig) Validate ¶
func (ic IteratorConfig) Validate() error
type WeightedIterator ¶
type WeightedIterator struct {
// contains filtered or unexported fields
}
func NewWeightedIterator ¶
func NewWeightedIterator(config []IteratorConfig) *WeightedIterator
NewWeightedIterator returns the weighted iterator of iterators.
func (*WeightedIterator) HasNext ¶
func (rg *WeightedIterator) HasNext() bool
HasNext returns true if the next element exists. HasNext is not thread-safe.
func (*WeightedIterator) Next ¶
func (rg *WeightedIterator) Next() int
Next returns the next element. Next is not thread-safe.
Click to show internal directories.
Click to hide internal directories.