AddIP 添加记录
(ip string, agentCode string)
| 175 | |
| 176 | // AddIP 添加记录 |
| 177 | func (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 |
| 184 | func (this *Manager) LookupIP(ip string) (agentCode string) { |
no test coverage detected