Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ GetKey
Method
GetKey
internal/utils/counters/counter.go:111–113 ·
view source on GitHub ↗
GetKey get value of string key
(key string)
Source
from the content-addressed store, hash-verified
109
110
// GetKey get value of string key
111
func
(this *Counter[T]) GetKey(key string) T {
112
return
this.Get(this.hash(key))
113
}
114
115
// Reset key
116
func
(this *Counter[T]) Reset(key uint64) {
Callers
1
TestCounter_IncreaseKey
Function · 0.80
Calls
2
Get
Method · 0.95
hash
Method · 0.95
Tested by
1
TestCounter_IncreaseKey
Function · 0.64