MCPcopy Create free account
hub / github.com/cortexproject/cortex / Less

Method Less

pkg/ruler/ruler_pagination.go:11–13  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

9
10func (gi PaginatedGroupStates) Swap(i, j int) { gi[i], gi[j] = gi[j], gi[i] }
11func (gi PaginatedGroupStates) Less(i, j int) bool {
12 return GetRuleGroupNextToken(gi[i].Group.Namespace, gi[i].Group.Name) < GetRuleGroupNextToken(gi[j].Group.Namespace, gi[j].Group.Name)
13}
14func (gi PaginatedGroupStates) Len() int { return len(gi) }
15
16func GetRuleGroupNextToken(namespace string, group string) string {

Callers

nothing calls this directly

Calls 1

GetRuleGroupNextTokenFunction · 0.85

Tested by

no test coverage detected