Chore: Move ReqContext to contexthandler service (#62102)

* Chore: Move ReqContext to contexthandler service

* Rename package to contextmodel

* Generate ngalert files

* Remove unused imports
This commit is contained in:
idafurjes
2023-01-27 08:50:36 +01:00
committed by GitHub
parent 8379a29b53
commit 6c5a573772
180 changed files with 1208 additions and 1182 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
package api
import "github.com/grafana/grafana/pkg/models"
import contextmodel "github.com/grafana/grafana/pkg/services/contexthandler/model"
// swagger:route GET /datasources/proxy/{id}/{datasource_proxy_route} datasources datasourceProxyGETcalls
//
@@ -56,7 +56,7 @@ import "github.com/grafana/grafana/pkg/models"
// 403: forbiddenError
// 404: notFoundError
// 500: internalServerError
func (hs *HTTPServer) ProxyDataSourceRequest(c *models.ReqContext) {
func (hs *HTTPServer) ProxyDataSourceRequest(c *contextmodel.ReqContext) {
hs.DataProxy.ProxyDataSourceRequest(c)
}
@@ -102,7 +102,7 @@ func (hs *HTTPServer) ProxyDataSourceRequest(c *models.ReqContext) {
// 403: forbiddenError
// 404: notFoundError
// 500: internalServerError
func (hs *HTTPServer) ProxyDataSourceRequestWithUID(c *models.ReqContext) {
func (hs *HTTPServer) ProxyDataSourceRequestWithUID(c *contextmodel.ReqContext) {
hs.DataProxy.ProxyDatasourceRequestWithUID(c, "")
}