Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + type BucketSortedMap struct + func NewBucketSortedMap(nChunks uint32, nScoreChunks uint32) *BucketSortedMap + func (sortedMap *BucketSortedMap) ChunksCounts() []uint32 + func (sortedMap *BucketSortedMap) Clear() + func (sortedMap *BucketSortedMap) Count() uint32 + func (sortedMap *BucketSortedMap) CountSorted() uint32 + func (sortedMap *BucketSortedMap) Get(key string) (BucketSortedMapItem, bool) + func (sortedMap *BucketSortedMap) GetSnapshotAscending() []BucketSortedMapItem + func (sortedMap *BucketSortedMap) GetSnapshotDescending() []BucketSortedMapItem + func (sortedMap *BucketSortedMap) Has(key string) bool + func (sortedMap *BucketSortedMap) IterCbSortedAscending(callback SortedMapIterCb) + func (sortedMap *BucketSortedMap) IterCbSortedDescending(callback SortedMapIterCb) + func (sortedMap *BucketSortedMap) Keys() []string + func (sortedMap *BucketSortedMap) KeysSorted() []string + func (sortedMap *BucketSortedMap) NotifyScoreChange(item BucketSortedMapItem, newScore uint32) + func (sortedMap *BucketSortedMap) Remove(key string) (interface{}, bool) + func (sortedMap *BucketSortedMap) ScoreChunksCounts() []uint32 + func (sortedMap *BucketSortedMap) Set(item BucketSortedMapItem) + type BucketSortedMapItem interface + GetKey func() string + GetScoreChunk func() *MapChunk + SetScoreChunk func(*MapChunk) + type ConcurrentMap struct + func NewConcurrentMap(nChunks uint32) *ConcurrentMap + func (m *ConcurrentMap) Clear() + func (m *ConcurrentMap) Count() int + func (m *ConcurrentMap) Get(key string) (interface{}, bool) + func (m *ConcurrentMap) Has(key string) bool + func (m *ConcurrentMap) IterCb(fn IterCb) + func (m *ConcurrentMap) Keys() []string + func (m *ConcurrentMap) Remove(key string) (interface{}, bool) + func (m *ConcurrentMap) Set(key string, value interface{}) + func (m *ConcurrentMap) SetIfAbsent(key string, value interface{}) bool + type IterCb func(key string, v interface{}) + type MapChunk struct + type SortedMapIterCb func(key string, value BucketSortedMapItem)