MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / ParsePtr

Method ParsePtr

internal/utils/agents/queue.go:131–138  ·  view source on GitHub ↗

ParsePtr 分析PTR对应的Agent

(ptr string)

Source from the content-addressed store, hash-verified

129
130// ParsePtr 分析PTR对应的Agent
131func (this *Queue) ParsePtr(ptr string) (agentCode string) {
132 for _, agent := range AllAgents {
133 if agent.Match(ptr) {
134 return agent.Code
135 }
136 }
137 return ""
138}

Callers 3

ProcessMethod · 0.95
TestParseQueue_ParsePtrFunction · 0.80
BenchmarkQueue_ParsePtrFunction · 0.80

Calls 1

MatchMethod · 0.45

Tested by 2

TestParseQueue_ParsePtrFunction · 0.64
BenchmarkQueue_ParsePtrFunction · 0.64