Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cortexproject/cortex
/ Len
Method
Len
pkg/util/priority_queue.go:27–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
type
queue []PriorityOp
26
27
func
(q queue) Len() int {
return
len(q) }
28
func
(q queue) Less(i, j int) bool {
return
q[i].Priority() > q[j].Priority() }
29
func
(q queue) Swap(i, j int) { q[i], q[j] = q[j], q[i] }
30
Callers
15
LabelsToMetric
Function · 0.45
TestParseProtoReader_GzipDecompressionBomb
Function · 0.45
testCompress
Function · 0.45
TestDependencies
Function · 0.45
TestGetEmptyListWhenThereIsNoUserVisibleModule
Function · 0.45
Test_CIDRSliceCSV_YamlMarshalling
Function · 0.45
TestNewHealthCheckService
Function · 0.45
convertV2RequestToV1
Function · 0.45
verifyWriteRequestHandler
Function · 0.45
Test_convertV2RequestToV1_DeepCopy
Function · 0.45
TestCollectingAppender_AppendSample_SingleSeries
Function · 0.45
TestCollectingAppender_AppendSample_MultipleSamplesSameSeries
Function · 0.45
Calls
no outgoing calls
Tested by
15
TestParseProtoReader_GzipDecompressionBomb
Function · 0.36
testCompress
Function · 0.36
TestDependencies
Function · 0.36
TestGetEmptyListWhenThereIsNoUserVisibleModule
Function · 0.36
Test_CIDRSliceCSV_YamlMarshalling
Function · 0.36
TestNewHealthCheckService
Function · 0.36
verifyWriteRequestHandler
Function · 0.36
Test_convertV2RequestToV1_DeepCopy
Function · 0.36
TestCollectingAppender_AppendSample_SingleSeries
Function · 0.36
TestCollectingAppender_AppendSample_MultipleSamplesSameSeries
Function · 0.36
TestCollectingAppender_AppendSample_MultipleSeries
Function · 0.36
TestCollectingAppender_AppendSample_WithExemplars
Function · 0.36