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

Function WrapHandler

src/go/plugin/framework/dyncfg/helpers.go:8–12  ·  view source on GitHub ↗

WrapHandler adapts a dyncfg function handler to functions.Registry handler type.

(handler func(Function))

Source from the content-addressed store, hash-verified

6
7// WrapHandler adapts a dyncfg function handler to functions.Registry handler type.
8func WrapHandler(handler func(Function)) func(functions.Function) {
9 return func(fn functions.Function) {
10 handler(NewFunction(fn))
11 }
12}
13
14// BindResponder swaps a component responder and keeps handler API in sync.
15func BindResponder[C Config](dst **Responder, handler *Handler[C], responder *Responder) {

Callers

nothing calls this directly

Calls 2

handlerFunction · 0.85
NewFunctionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…