Documentation ¶
Index ¶
- Constants
- type Item
- type SortedList
- func (l *SortedList) Add(data Item) (err error)
- func (l *SortedList) Delete(data Item) (err error)
- func (l *SortedList) Range(fn func(data Item) bool)
- func (l *SortedList) RangeLimit(limit int, fn func(Item) bool)
- func (l *SortedList) RangeReverse(fn func(data Item) bool)
- func (l *SortedList) RangeReverseLimit(limit int, fn func(Item) bool)
- func (l *SortedList) Size() int
- func (l *SortedList) Update(data Item) (err error)
- func (l *SortedList) UpdateOrAdd(data Item) (err error)
Constants ¶
View Source
const BucketMaxLength = 10000
View Source
const InnerBucketMaxLength = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortedList ¶
type SortedList struct {
// contains filtered or unexported fields
}
func NewSortedList ¶
func NewSortedList() *SortedList
func (*SortedList) Add ¶
func (l *SortedList) Add(data Item) (err error)
func (*SortedList) Delete ¶
func (l *SortedList) Delete(data Item) (err error)
func (*SortedList) Range ¶
func (l *SortedList) Range(fn func(data Item) bool)
func (*SortedList) RangeLimit ¶
func (l *SortedList) RangeLimit(limit int, fn func(Item) bool)
func (*SortedList) RangeReverse ¶
func (l *SortedList) RangeReverse(fn func(data Item) bool)
func (*SortedList) RangeReverseLimit ¶
func (l *SortedList) RangeReverseLimit(limit int, fn func(Item) bool)
func (*SortedList) Size ¶
func (l *SortedList) Size() int
func (*SortedList) Update ¶
func (l *SortedList) Update(data Item) (err error)
func (*SortedList) UpdateOrAdd ¶
func (l *SortedList) UpdateOrAdd(data Item) (err error)
Click to show internal directories.
Click to hide internal directories.