MCPcopy
hub / github.com/netdata/netdata / parseCancelEvent

Function parseCancelEvent

src/go/plugin/framework/functions/parser.go:171–177  ·  view source on GitHub ↗
(line string)

Source from the content-addressed store, hash-verified

169}
170
171func parseCancelEvent(line string) (inputEvent, error) {
172 parts := strings.Fields(line)
173 if len(parts) != 2 || parts[0] != lineFunctionCancel || parts[1] == "" {
174 return inputEvent{}, errors.New("unexpected FUNCTION_CANCEL format")
175 }
176 return inputEvent{kind: inputEventCancel, uid: parts[1]}, nil
177}
178
179func parseProgressEvent(line string) inputEvent {
180 parts := strings.Fields(line)

Callers 2

parseEventMethod · 0.85
handlePayloadLineMethod · 0.85

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…