Documentation
¶
Index ¶
- type Base
- type Bitmap
- type BloomFilter
- type BloomFilterFuzzyOption
- type BloomFilterSpecificOption
- type Counter
- type List
- func (l *List) Append(list []interface{})
- func (l *List) GetElementAt(pos int) (interface{}, error)
- func (l *List) GetLen() int
- func (l *List) GetListBetween(left int, right int) ([]interface{}, error)
- func (l *List) GetListEndAt(right int) ([]interface{}, error)
- func (l *List) GetListEqualToVal(val interface{}) []interface{}
- func (l *List) GetListStartWith(left int) ([]interface{}, error)
- func (l *List) GetValue() interface{}
- func (l *List) LPop() interface{}
- func (l *List) LPush(ele interface{})
- func (l *List) RPop() interface{}
- func (l *List) RPush(ele interface{})
- func (l *List) RemoveAt(idx int) error
- func (l *List) RemoveVal(val interface{})
- func (l *List) SetAt(idx int, val interface{}) error
- func (l *List) Size() int
- type Lock
- type LockView
- type Object
- type Set
- func (s *Set) Add(e interface{})
- func (s *Set) Contains(e interface{}) bool
- func (s *Set) Diff(another *Set) *Set
- func (s *Set) GetSize() int
- func (s *Set) GetValue() interface{}
- func (s *Set) Intersect(another *Set) *Set
- func (s *Set) Remove(e interface{})
- func (s *Set) Size() int
- func (s *Set) Union(another *Set) *Set
- type String
- type ZElement
- type ZList
- func (zl *ZList) Add(list []util.SlElement)
- func (zl *ZList) GetElementAt(pos int) (*util.SlElement, error)
- func (zl *ZList) GetLen() int
- func (zl *ZList) GetListBetween(left int, right int) ([]util.SlElement, error)
- func (zl *ZList) GetListEndAt(right int) ([]util.SlElement, error)
- func (zl *ZList) GetListInScore(min float64, max float64) ([]util.SlElement, error)
- func (zl *ZList) GetListStartWith(left int) ([]util.SlElement, error)
- func (zl *ZList) GetValue() interface{}
- func (zl *ZList) RemoveInScore(min float64, max float64) error
- func (zl *ZList) RemoveScore(score float64)
- func (zl *ZList) RemoveScores(scores []float64)
- func (zl *ZList) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Type util.DSType CreateTime int64 UpdateTime int64 DeleteTime int64 ExpireTime *int64 Version uint64 }
func (*Base) DeleteValue ¶
func (b *Base) DeleteValue()
func (*Base) WithExpireTime ¶
type Bitmap ¶
type Bitmap struct { Base // contains filtered or unexported fields }
func MakeBitmap ¶
func MakeBitmap() *Bitmap
func MakeBitmapFromList ¶
type BloomFilter ¶
type BloomFilter struct { Base // contains filtered or unexported fields }
func MakeBloomFilterFromView ¶
func MakeBloomFilterFromView(view *util.BloomView) *BloomFilter
func MakeBloomFilterFuzzy ¶
func MakeBloomFilterFuzzy(option BloomFilterFuzzyOption) *BloomFilter
MakeBloomFilterFuzzy 模糊创建
func MakeBloomFilterSpecific ¶
func MakeBloomFilterSpecific(option BloomFilterSpecificOption) *BloomFilter
MakeBloomFilterSpecific 精确创建
func (*BloomFilter) Add ¶
func (b *BloomFilter) Add(data string)
func (*BloomFilter) ClearAll ¶
func (b *BloomFilter) ClearAll()
func (*BloomFilter) EstimateFalsePositiveRate ¶
func (b *BloomFilter) EstimateFalsePositiveRate(n uint) float64
func (*BloomFilter) GetSize ¶
func (b *BloomFilter) GetSize() uint64
func (*BloomFilter) GetValue ¶
func (b *BloomFilter) GetValue() interface{}
func (*BloomFilter) Size ¶ added in v0.0.7
func (b *BloomFilter) Size() int
func (*BloomFilter) Test ¶
func (b *BloomFilter) Test(data string) bool
type BloomFilterFuzzyOption ¶
type Counter ¶
type Counter struct { Base // contains filtered or unexported fields }
func MakeCounter ¶
type List ¶
type List struct { Base // contains filtered or unexported fields }
func (*List) GetElementAt ¶
func (*List) GetListBetween ¶
func (*List) GetListEndAt ¶
func (*List) GetListEqualToVal ¶
func (l *List) GetListEqualToVal(val interface{}) []interface{}
func (*List) GetListStartWith ¶
type Lock ¶
type Object ¶
type Object struct { Base // contains filtered or unexported fields }
func MakeObject ¶
func (*Object) DeleteFieldByKey ¶ added in v0.1.1
func (*Object) GetFieldByKey ¶
func (*Object) SetFieldByKey ¶
type String ¶
type String struct { Base // contains filtered or unexported fields }
func MakeString ¶
type ZList ¶
type ZList struct { Base // contains filtered or unexported fields }
ZList sorted-list
func (*ZList) GetListBetween ¶
GetListBetween Left-Close and Right-Open
func (*ZList) GetListInScore ¶
func (*ZList) GetListStartWith ¶
func (*ZList) RemoveScore ¶
func (*ZList) RemoveScores ¶
Click to show internal directories.
Click to hide internal directories.