MCPcopy
hub / github.com/netdata/netdata / resetPayloadState

Method resetPayloadState

src/go/plugin/framework/functions/parser.go:161–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159}
160
161func (p *inputParser) resetPayloadState() {
162 p.readingPayload = false
163 p.currentFn = nil
164 p.payloadBuf.Reset()
165}
166
167func hasLinePrefix(line, keyword string) bool {
168 return line == keyword || strings.HasPrefix(line, keyword+" ")

Callers 1

handlePayloadLineMethod · 0.95

Calls 1

ResetMethod · 0.65

Tested by

no test coverage detected