MCPcopy Index your code
hub / github.com/netdata/netdata / HasPayload

Method HasPayload

src/go/plugin/framework/dyncfg/function.go:99–101  ·  view source on GitHub ↗

HasPayload returns true if the function has a non-empty payload.

()

Source from the content-addressed store, hash-verified

97
98// HasPayload returns true if the function has a non-empty payload.
99func (f Function) HasPayload() bool {
100 return len(f.fn.Payload) > 0
101}
102
103// ValidateArgs checks if the function has at least the required number of arguments.
104// Returns an error with a descriptive message if validation fails.

Callers 5

ValidateHasPayloadMethod · 0.95
dyncfgCmdUserconfigMethod · 0.80
dyncfgCmdTestMethod · 0.80
dyncfgCmdAddMethod · 0.80
dyncfgCmdTestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected