Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ NewIdKeyMap
Function
NewIdKeyMap
internal/utils/expires/id_key_map.go:10–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
}
9
10
func
NewIdKeyMap() *IdKeyMap {
11
return
&IdKeyMap{
12
idKeys:
map
[int64]string{},
13
keyIds:
map
[string]int64{},
14
}
15
}
16
17
func
(this *IdKeyMap) Add(id int64, key string) {
18
oldKey, ok := this.idKeys[id]
Callers
1
TestNewIdKeyMap
Function · 0.92
Calls
no outgoing calls
Tested by
1
TestNewIdKeyMap
Function · 0.74