mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
a6ad2380bf
This splits the request handlers into two functions, one which is the actual handler and one which is independent from the Grafana `ReqContext` object. This is to make it easier to reuse the implementation in other code. Part of the refactoring changes the functions which get query parameters from the request to operate on a `url.Values` instead of the request object. The change also makes the code consistently use `req.Form` instead of a combination of `req.URL.Query()` and `req.Form`, though I have left `api_ruler` as-is to avoid this PR growing too large. |
||
---|---|---|
.. | ||
api | ||
apimachinery | ||
apis | ||
apiserver | ||
build | ||
bus | ||
cmd | ||
codegen | ||
components | ||
events | ||
expr | ||
extensions | ||
generated | ||
ifaces/gcsifaces | ||
infra | ||
kinds | ||
login/social | ||
middleware | ||
mocks/mock_gcsifaces | ||
models | ||
modules | ||
plugins | ||
promlib | ||
registry | ||
server | ||
services | ||
setting | ||
tests | ||
tsdb | ||
util | ||
web | ||
README.md | ||
ruleguard.rules.go |
This directory contains the code for the Grafana backend.
The contributor documentation for Grafana's backend is in /contribute/backend/README.md.