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

Method initMux

authorization/api.go:116–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func (h *Handler) initMux() {
117 h.handle(reqPath, func(req Request) Response {
118 return h.plugin.AuthZReq(req)
119 })
120
121 h.handle(resPath, func(req Request) Response {
122 return h.plugin.AuthZRes(req)
123 })
124}
125
126type actionHandler func(Request) Response
127

Callers 1

NewHandlerFunction · 0.95

Calls 3

handleMethod · 0.95
AuthZReqMethod · 0.65
AuthZResMethod · 0.65

Tested by

no test coverage detected