mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 03:22:14 +08:00

* 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
30 lines
612 B
Go
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
|
|
}
|