MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / NewHandler

Function NewHandler

authorization/api.go:110–114  ·  view source on GitHub ↗

NewHandler initializes the request handler with a plugin implementation.

(plugin Plugin)

Source from the content-addressed store, hash-verified

108
109// NewHandler initializes the request handler with a plugin implementation.
110func NewHandler(plugin Plugin) *Handler {
111 h := &Handler{plugin, sdk.NewHandler(manifest)}
112 h.initMux()
113 return h
114}
115
116func (h *Handler) initMux() {
117 h.handle(reqPath, func(req Request) Response {

Callers 1

TestMainFunction · 0.70

Calls 1

initMuxMethod · 0.95

Tested by 1

TestMainFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…