MCPcopy Create free account
hub / github.com/deepflowio/deepflow / Load

Method Load

server/controller/prometheus/cache/target.go:64–69  ·  view source on GitHub ↗
(tk TargetKey)

Source from the content-addressed store, hash-verified

62}
63
64func (k *keyToTargetID) Load(tk TargetKey) (int, bool) {
65 k.lock.Lock()
66 defer k.lock.Unlock()
67 id, ok := k.data[tk]
68 return id, ok
69}
70
71func (k *keyToTargetID) Get() map[TargetKey]int {
72 k.lock.Lock()

Callers 13

getActiveMethod · 0.45
GetValueByIDMethod · 0.45
getActiveMethod · 0.45
GetIDByKeyMethod · 0.45
GetLabelNamesByIDMethod · 0.45
getActiveMethod · 0.45
getActiveMethod · 0.45
GetNameByIDMethod · 0.45
getActiveMethod · 0.45
getIDMethod · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45