| 8 | type ItemMap = map[uint64]zero.Zero |
| 9 | |
| 10 | type 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 | |
| 22 | func NewList() *List { |
| 23 | var list = &List{ |
nothing calls this directly
no outgoing calls
no test coverage detected