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

Method Contains

internal/utils/agents/ip_cache_map.go:49–54  ·  view source on GitHub ↗
(ip string)

Source from the content-addressed store, hash-verified

47}
48
49func (this *IPCacheMap) Contains(ip string) bool {
50 this.locker.RLock()
51 defer this.locker.RUnlock()
52 _, ok := this.m[ip]
53 return ok
54}

Callers 3

IsAgentFromUserAgentFunction · 0.45
InsertAgentIPMethod · 0.45
PushMethod · 0.45

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected