(rw http.ResponseWriter, req *http.Request)
| 858 | } |
| 859 | |
| 860 | func (h *Handler) serveQuery(rw http.ResponseWriter, req *http.Request) { |
| 861 | defer httputil.RecoverJSON(rw, req) |
| 862 | |
| 863 | var sq SearchQuery |
| 864 | if err := sq.FromHTTP(req); err != nil { |
| 865 | httputil.ServeJSONError(rw, err) |
| 866 | return |
| 867 | } |
| 868 | |
| 869 | sr, err := h.Query(req.Context(), &sq) |
| 870 | if err != nil { |
| 871 | httputil.ServeJSONError(rw, err) |
| 872 | return |
| 873 | } |
| 874 | |
| 875 | httputil.ReturnJSON(rw, sr) |
| 876 | } |
| 877 | |
| 878 | // GetSignerPaths returns paths with a target of req.Target. |
| 879 | func (h *Handler) GetSignerPaths(req *SignerPathsRequest) (*SignerPathsResponse, error) { |
nothing calls this directly
no test coverage detected