Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ NewQueue
Function
NewQueue
internal/utils/agents/queue.go:35–40 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
}
34
35
func
NewQueue() *Queue {
36
return
&Queue{
37
c: make(
chan
string, 128),
38
cacheMap: NewIPCacheMap(65535),
39
}
40
}
41
42
func
(this *Queue) Start() {
43
for
ip :=
range
this.c {
Callers
5
TestParseQueue_Process
Function · 0.92
TestParseQueue_ParseIP
Function · 0.92
TestParseQueue_ParsePtr
Function · 0.92
BenchmarkQueue_ParsePtr
Function · 0.92
queue.go
File · 0.85
Calls
1
NewIPCacheMap
Function · 0.85
Tested by
4
TestParseQueue_Process
Function · 0.74
TestParseQueue_ParseIP
Function · 0.74
TestParseQueue_ParsePtr
Function · 0.74
BenchmarkQueue_ParsePtr
Function · 0.74