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

Method AddIP

internal/utils/agents/manager.go:177–181  ·  view source on GitHub ↗

AddIP 添加记录

(ip string, agentCode string)

Source from the content-addressed store, hash-verified

175
176// AddIP 添加记录
177func (this *Manager) AddIP(ip string, agentCode string) {
178 this.locker.Lock()
179 this.ipMap[ip] = agentCode
180 this.locker.Unlock()
181}
182
183// LookupIP 查询IP所属Agent
184func (this *Manager) LookupIP(ip string) (agentCode string) {

Callers 4

ProcessMethod · 0.45
handleConnMethod · 0.45
doEndMethod · 0.45
NewUDPConnFunction · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected