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

Method Marshal

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

Source from the content-addressed store, hash-verified

1141}
1142
1143func (m *RulesRequest) Marshal() (dAtA []byte, err error) {
1144 size := m.Size()
1145 dAtA = make([]byte, size)
1146 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1147 if err != nil {
1148 return nil, err
1149 }
1150 return dAtA[:n], nil
1151}
1152
1153func (m *RulesRequest) MarshalTo(dAtA []byte) (int, error) {
1154 size := m.Size()

Callers 15

DecodeMethod · 0.45
PrometheusRulesMethod · 0.45
PrometheusAlertsMethod · 0.45
marshalAndSendFunction · 0.45
respondAcceptedFunction · 0.45
CreateRuleGroupMethod · 0.45
TestRuler_ListAllRulesFunction · 0.45
TestRuler_rulesFunction · 0.45
TestRuler_rules_limitFunction · 0.45

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by 9

TestRuler_ListAllRulesFunction · 0.36
TestRuler_rulesFunction · 0.36
TestRuler_rules_limitFunction · 0.36
TestRuler_alertsFunction · 0.36
TestProtoDecodeFunction · 0.36