MCPcopy
hub / github.com/netdata/netdata / NewFunction

Function NewFunction

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

NewFunction creates a new dyncfg Function wrapper.

(fn functions.Function)

Source from the content-addressed store, hash-verified

19
20// NewFunction creates a new dyncfg Function wrapper.
21func NewFunction(fn functions.Function) Function {
22 return Function{fn: fn}
23}
24
25// Fn returns the underlying functions.Function.
26// Use this when passing to APIs that expect functions.Function.

Callers 2

WrapHandlerFunction · 0.85
newTestFnFunction · 0.85

Calls

no outgoing calls

Tested by 1

newTestFnFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…