ds-querier: handle response-headers explicitly (#107304)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user