Versions in this module Expand all Collapse all v1 v1.0.0 Mar 23, 2020 Changes in this version + var HistoryBigMap = make(map[string]*SafeItemMap) + func InitHistoryBigMap() + func Judge(L *SafeLinkedList, item *dataobj.ItemStatus, now int64) + type HistoryData struct + Timestamp int64 + Value int64 + type SafeItemMap struct + M map[string]*SafeLinkedList + func NewSafeItemMap() *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 struct + L *list.List + func (this *SafeLinkedList) Front() *list.Element + func (this *SafeLinkedList) HistoryData(limit int) ([]*HistoryData, bool) + func (this *SafeLinkedList) Len() int + func (this *SafeLinkedList) PushFrontAndMaintain(v *dataobj.ItemStatus, maxCount int) bool