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

Method IdMap

internal/waf/ip_list.go:309–313  ·  view source on GitHub ↗

IdMap get idMap

()

Source from the content-addressed store, hash-verified

307
308// IdMap get idMap
309func (this *IPList) IdMap() map[uint64]string {
310 this.locker.RLock()
311 defer this.locker.RUnlock()
312 return this.idMap
313}
314
315func (this *IPList) remove(id uint64) {
316 this.locker.Lock()

Callers 2

TestNewIPListFunction · 0.80
TestIPList_ExpireFunction · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by 2

TestNewIPListFunction · 0.64
TestIPList_ExpireFunction · 0.64