Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ NewMap
Function
NewMap
internal/conns/map.go:19–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
}
18
19
func
NewMap() *Map {
20
return
&Map{
21
m:
map
[string]
map
[string]net.Conn{},
22
}
23
}
24
25
func
(this *Map) Add(conn net.Conn) {
26
if
conn == nil {
Callers
2
BenchmarkMap_Add
Function · 0.92
map.go
File · 0.85
Calls
no outgoing calls
Tested by
1
BenchmarkMap_Add
Function · 0.74