NewHandler initializes the request handler with a driver implementation.
(ipam Ipam)
| 96 | |
| 97 | // NewHandler initializes the request handler with a driver implementation. |
| 98 | func NewHandler(ipam Ipam) *Handler { |
| 99 | h := &Handler{ipam, sdk.NewHandler(manifest)} |
| 100 | h.initMux() |
| 101 | return h |
| 102 | } |
| 103 | |
| 104 | func (h *Handler) initMux() { |
| 105 | h.HandleFunc(capabilitiesPath, func(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…