(r *http.Request)
| 595 | } |
| 596 | |
| 597 | func (api *API) parseQuery(r *http.Request) apiFuncResult { |
| 598 | expr, err := api.parser.ParseExpr(r.FormValue("query")) |
| 599 | if err != nil { |
| 600 | return invalidParamError(err, "query") |
| 601 | } |
| 602 | |
| 603 | return apiFuncResult{data: translateAST(expr), err: nil, warnings: nil, finalizer: nil} |
| 604 | } |
| 605 | |
| 606 | func extractQueryOpts(r *http.Request) (promql.QueryOpts, error) { |
| 607 | var duration time.Duration |
nothing calls this directly
no test coverage detected