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

Method IPMap

internal/waf/ip_list.go:302–306  ·  view source on GitHub ↗

IPMap get ipMap

()

Source from the content-addressed store, hash-verified

300
301// IPMap get ipMap
302func (this *IPList) IPMap() map[string]uint64 {
303 this.locker.RLock()
304 defer this.locker.RUnlock()
305 return this.ipMap
306}
307
308// IdMap get idMap
309func (this *IPList) IdMap() map[uint64]string {

Callers 3

TestNewIPListFunction · 0.45
TestIPList_ExpireFunction · 0.45
BenchmarkIPList_AddFunction · 0.45

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by 3

TestNewIPListFunction · 0.36
TestIPList_ExpireFunction · 0.36
BenchmarkIPList_AddFunction · 0.36