Documentation ¶
Index ¶
- Variables
- func InitHistoryBigMap()
- func Judge(L *SafeLinkedList, item *dataobj.ItemStatus, now int64)
- type HistoryData
- type SafeItemMap
- func (this *SafeItemMap) BatchDelete(keys []string)
- func (this *SafeItemMap) CleanStale(before int64)
- func (this *SafeItemMap) Delete(key string)
- func (this *SafeItemMap) Get(key string) (*SafeLinkedList, bool)
- func (this *SafeItemMap) Len() int
- func (this *SafeItemMap) PushFrontAndMaintain(key string, val *dataobj.ItemStatus, maxCount int, now int64)
- func (this *SafeItemMap) Set(key string, val *SafeLinkedList)
- type SafeLinkedList
Constants ¶
This section is empty.
Variables ¶
View Source
var HistoryBigMap = make(map[string]*SafeItemMap)
Functions ¶
func InitHistoryBigMap ¶
func InitHistoryBigMap()
func Judge ¶
func Judge(L *SafeLinkedList, item *dataobj.ItemStatus, now int64)
Types ¶
type HistoryData ¶
type SafeItemMap ¶
type SafeItemMap struct { sync.RWMutex M map[string]*SafeLinkedList }
func NewSafeItemMap ¶
func NewSafeItemMap() *SafeItemMap
func (*SafeItemMap) BatchDelete ¶
func (this *SafeItemMap) BatchDelete(keys []string)
func (*SafeItemMap) CleanStale ¶
func (this *SafeItemMap) CleanStale(before int64)
func (*SafeItemMap) Delete ¶
func (this *SafeItemMap) Delete(key string)
func (*SafeItemMap) Get ¶
func (this *SafeItemMap) Get(key string) (*SafeLinkedList, bool)
func (*SafeItemMap) Len ¶
func (this *SafeItemMap) Len() int
func (*SafeItemMap) PushFrontAndMaintain ¶
func (this *SafeItemMap) PushFrontAndMaintain(key string, val *dataobj.ItemStatus, maxCount int, now int64)
func (*SafeItemMap) Set ¶
func (this *SafeItemMap) Set(key string, val *SafeLinkedList)
type SafeLinkedList ¶
func (*SafeLinkedList) Front ¶
func (this *SafeLinkedList) Front() *list.Element
func (*SafeLinkedList) HistoryData ¶
func (this *SafeLinkedList) HistoryData(limit int) ([]*HistoryData, bool)
func (*SafeLinkedList) Len ¶
func (this *SafeLinkedList) Len() int
func (*SafeLinkedList) PushFrontAndMaintain ¶
func (this *SafeLinkedList) PushFrontAndMaintain(v *dataobj.ItemStatus, maxCount int) bool
Click to show internal directories.
Click to hide internal directories.