Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
49
func
(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
IsAgentFromUserAgent
Function · 0.45
InsertAgentIP
Method · 0.45
Push
Method · 0.45
Calls
2
RLock
Method · 0.80
RUnlock
Method · 0.80
Tested by
no test coverage detected