MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / List

Struct List

internal/utils/expires/list.go:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8type ItemMap = map[uint64]zero.Zero
9
10type List struct {
11 expireMap map[int64]ItemMap // expires timestamp => map[id]ItemMap
12 itemsMap map[uint64]int64 // itemId => timestamp
13
14 mu sync.RWMutex
15
16 gcCallback func(itemId uint64)
17 gcBatchCallback func(itemIds ItemMap)
18
19 lastTimestamp int64
20}
21
22func NewList() *List {
23 var list = &List{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected