Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepflowio/deepflow
/ GetIDByKey
Method
GetIDByKey
server/controller/prometheus/cache/target.go:161–163 ·
view source on GitHub ↗
(key TargetKey)
Source
from the content-addressed store, hash-verified
159
}
160
161
func
(t *target) GetIDByKey(key TargetKey) (int, bool) {
162
return
t.keyToTargetID.Load(key)
163
}
164
165
func
(t *target) GetLabelNamesByID(id int) []string {
166
return
t.targetIDToLabelNames.Load(id)
Callers
nothing calls this directly
Calls
1
Load
Method · 0.45
Tested by
no test coverage detected