Files
grafana/pkg/tsdb/influxdb/models/datasource_info.go
Andreas Christou 47ec51fda7 Influx: Support PDC for Influx SQL (#103032)
* Support PDC for Influx SQL

* Correctly set the gRPC transport creds dial option

* Logging and refactor

* Allow URLs with no scheme

* Use passthrough resolver for socks proxy

* Update comment

* Extract url parsing and add test

* Check err
2025-04-02 16:21:59 +01:00

30 lines
612 B
Go

package models
import (
"net/http"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend/proxy"
)
type DatasourceInfo struct {
HTTPClient *http.Client
Token string
URL string
DbName string `json:"dbName"`
Version string `json:"version"`
HTTPMode string `json:"httpMode"`
TimeInterval string `json:"timeInterval"`
DefaultBucket string `json:"defaultBucket"`
Organization string `json:"organization"`
MaxSeries int `json:"maxSeries"`
Timeout time.Duration
// FlightSQL grpc connection
InsecureGrpc bool `json:"insecureGrpc"`
ProxyClient proxy.Client
}