Documentation
¶
Index ¶
- type Interface
- type Key
- type SortedSet
- func (z *SortedSet) Delete(key Key) (value interface{})
- func (z *SortedSet) GetRank(key Key) int
- func (z *SortedSet) GetValue(key Key) (value interface{}, ok bool)
- func (z *SortedSet) Init() *SortedSet
- func (z *SortedSet) Len() int
- func (z *SortedSet) Range(start, end int, f func(rank int, key Key, value interface{}) bool)
- func (z *SortedSet) RevRange(start, end int, f func(rank int, key Key, value interface{}) bool)
- func (z *SortedSet) Search(n int, f func(i Interface) bool) (rank int)
- func (z *SortedSet) Select(rank int) (key Key, value interface{})
- func (z *SortedSet) Set(key Key, v Interface) (rank int)
- func (z *SortedSet) WouldBeInserted(v Interface) (rank int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortedSet ¶
type SortedSet struct {
// contains filtered or unexported fields
}
func (*SortedSet) RevRange ¶
RevRange implements ZREVRANGE If f returns false, range stops the iteration.
func (*SortedSet) Set ¶
Set is used to add or update an element,returns the rank where it would be inserted.
func (*SortedSet) WouldBeInserted ¶
WouldBeInserted implements skiplist.WouldBeInserted
Click to show internal directories.
Click to hide internal directories.