Versions in this module Expand all Collapse all v1 v1.4.0 Jun 13, 2020 Changes in this version type SafeLinkedList + func (ll *SafeLinkedList) QueryDataByTS(start, end int64) []*dataobj.HistoryData v1.3.3 Apr 25, 2020 v1.3.0 Apr 14, 2020 v1.2.4 Apr 13, 2020 v1.2.3 Apr 13, 2020 v1.2.2 Apr 10, 2020 v1.2.1 Apr 8, 2020 v1.2.0 Apr 2, 2020 v1.1.0 Mar 29, 2020 v1.0.3 Mar 27, 2020 v1.0.2 Mar 25, 2020 v1.0.1 Mar 19, 2020 v1.0.0 Mar 16, 2020 Changes in this version + var HistoryBigMap = make(map[string]*JudgeItemMap) + var LastEvents = &SafeEventMap + func InitHistoryBigMap() + type IndexMap struct + Data map[int64]map[string]Series + var SeriesMap *IndexMap + func NewIndexMap() *IndexMap + func (i *IndexMap) Clean() + func (i *IndexMap) CleanLoop() + func (i *IndexMap) Get(id int64) []Series + func (i *IndexMap) Set(id int64, hash string, s Series) + type JudgeItemMap struct + M map[string]*SafeLinkedList + func NewJudgeItemMap() *JudgeItemMap + func (this *JudgeItemMap) BatchDelete(keys []string) + func (this *JudgeItemMap) CleanStale(before int64) + func (this *JudgeItemMap) Get(key string) (*SafeLinkedList, bool) + func (this *JudgeItemMap) Len() int + func (this *JudgeItemMap) Set(key string, val *SafeLinkedList) + type SafeEventMap struct + M map[string]*dataobj.Event + func (this *SafeEventMap) Get(key string) (*dataobj.Event, bool) + func (this *SafeEventMap) Set(key string, event *dataobj.Event) + type SafeLinkedList struct + L *list.List + func (this *SafeLinkedList) Front() *list.Element + func (this *SafeLinkedList) HistoryData(limit int) ([]*dataobj.RRDData, bool) + func (this *SafeLinkedList) Len() int + func (this *SafeLinkedList) PushFrontAndMaintain(v *dataobj.JudgeItem, maxCount int) bool + type Series struct + Dstype string + Endpoint string + Metric string + Step int + TS int64 + Tag string + type StrategyMap struct + Data map[int64]*model.Stra + TS map[int64]int64 + var NodataStra *StrategyMap + var Strategy *StrategyMap + func NewStrategyMap() *StrategyMap + func (s *StrategyMap) Clean() + func (s *StrategyMap) Get(id int64) (*model.Stra, bool) + func (s *StrategyMap) GetAll() []*model.Stra + func (s *StrategyMap) Set(id int64, stra *model.Stra)