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