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

Function NewHandler

volume/api.go:124–128  ·  view source on GitHub ↗

NewHandler initializes the request handler with a driver implementation.

(driver Driver)

Source from the content-addressed store, hash-verified

122
123// NewHandler initializes the request handler with a driver implementation.
124func NewHandler(driver Driver) *Handler {
125 h := &Handler{driver, sdk.NewHandler(manifest)}
126 h.initMux()
127 return h
128}
129
130func (h *Handler) initMux() {
131 h.HandleFunc(createPath, 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…