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

Method Size

pkg/ruler/ruler.pb.go:1690–1707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1688}
1689
1690func (m *RulesResponse) Size() (n int) {
1691 if m == nil {
1692 return 0
1693 }
1694 var l int
1695 _ = l
1696 if len(m.Groups) > 0 {
1697 for _, e := range m.Groups {
1698 l = e.Size()
1699 n += 1 + l + sovRuler(uint64(l))
1700 }
1701 }
1702 l = len(m.NextToken)
1703 if l > 0 {
1704 n += 1 + l + sovRuler(uint64(l))
1705 }
1706 return n
1707}
1708
1709func (m *GroupStateDesc) Size() (n int) {
1710 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovRulerFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected