MCPcopy Index your code
hub / github.com/cortexproject/cortex / get

Method get

pkg/ruler/external_labels.go:30–35  ·  view source on GitHub ↗
(userID string)

Source from the content-addressed store, hash-verified

28}
29
30func (e *userExternalLabels) get(userID string) (labels.Labels, bool) {
31 e.mtx.Lock()
32 defer e.mtx.Unlock()
33 lset, ok := e.users[userID]
34 return lset, ok
35}
36
37func (e *userExternalLabels) update(userID string) (labels.Labels, bool) {
38 lset := e.limits.RulerExternalLabels(userID)

Callers 2

TestSyncRuleGroupsFunction · 0.45
TestUserExternalLabelsFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestSyncRuleGroupsFunction · 0.36
TestUserExternalLabelsFunction · 0.36