WrapHandler adapts a dyncfg function handler to functions.Registry handler type.
(handler func(Function))
| 6 | |
| 7 | // WrapHandler adapts a dyncfg function handler to functions.Registry handler type. |
| 8 | func 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. |
| 15 | func BindResponder[C Config](dst **Responder, handler *Handler[C], responder *Responder) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…