MCPcopy Index your code
hub / github.com/coder/coder / wrap

Function wrap

codersdk/toolsdk/toolsdk.go:298–303  ·  view source on GitHub ↗

wrap wraps the provided GenericHandlerFunc with the provided middleware functions.

(hf GenericHandlerFunc, mw ...func(GenericHandlerFunc) GenericHandlerFunc)

Source from the content-addressed store, hash-verified

296
297// wrap wraps the provided GenericHandlerFunc with the provided middleware functions.
298func wrap(hf GenericHandlerFunc, mw ...func(GenericHandlerFunc) GenericHandlerFunc) GenericHandlerFunc {
299 for _, m := range mw {
300 hf = m(hf)
301 }
302 return hf
303}
304
305// All is a list of all tools that can be used in the Coder CLI.
306// When you add a new tool, be sure to include it here!

Callers 1

GenericMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected