ds-querier: handle response-headers explicitly (#107304)

This commit is contained in:
Gábor Farkas
2025-07-15 08:31:57 +02:00
committed by GitHub
parent 2c0cfb0dc7
commit 868791d751
4 changed files with 207 additions and 32 deletions
@@ -2,14 +2,20 @@ package clientapi
import (
"context"
"net/http"
"github.com/grafana/grafana-plugin-sdk-go/backend"
data "github.com/grafana/grafana-plugin-sdk-go/experimental/apis/data/v0alpha1"
"github.com/grafana/grafana/pkg/services/featuremgmt"
)
type Response struct {
QDR *backend.QueryDataResponse
Headers http.Header
}
type QueryDataClient interface {
QueryData(ctx context.Context, req data.QueryDataRequest) (*backend.QueryDataResponse, error)
QueryData(ctx context.Context, req data.QueryDataRequest) (*Response, error)
}
type InstanceConfigurationSettings struct {