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

Method ContainsIP

internal/utils/agents/manager.go:191–196  ·  view source on GitHub ↗

ContainsIP 检查是否有IP相关数据

(ip string)

Source from the content-addressed store, hash-verified

189
190// ContainsIP 检查是否有IP相关数据
191func (this *Manager) ContainsIP(ip string) bool {
192 this.locker.RLock()
193 defer this.locker.RUnlock()
194 _, ok := this.ipMap[ip]
195 return ok
196}
197
198func (this *Manager) loadDB() error {
199 var sqlitePath = Tea.Root + "/data/agents.db"

Callers 1

ProcessMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected