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

Function NewHandler

secrets/api.go:70–74  ·  view source on GitHub ↗

NewHandler initializes the request handler with a driver implementation.

(driver Driver)

Source from the content-addressed store, hash-verified

68
69// NewHandler initializes the request handler with a driver implementation.
70func NewHandler(driver Driver) *Handler {
71 h := &Handler{driver, sdk.NewHandler(manifest)}
72 h.initMux()
73 return h
74}
75
76func (h *Handler) initMux() {
77 h.HandleFunc(getPath, func(w http.ResponseWriter, r *http.Request) {

Callers 1

TestHandlerFunction · 0.70

Calls 1

initMuxMethod · 0.95

Tested by 1

TestHandlerFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…