77e7ae2a1b
* Add influxdbSqlSupport feature toggle * Add SQL option to the config page * Add SQL backend * Add metadata support in config page * Implement unified querying * Fix healthcheck query * fsql tests * secure grpc by default * code cleanup * Query handing for sql mode * Implement a placeholder sql editor * Fix query language dropdown * go mod updates * make lint-go * more make lint-go * remove unused runQuery * switch statements with default case * linting again
26 lines
557 B
Go
26 lines
557 B
Go
package models
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
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"`
|
|
|
|
// Flight SQL metadata
|
|
Metadata []map[string]string `json:"metadata"`
|
|
// FlightSQL grpc connection
|
|
SecureGrpc bool `json:"secureGrpc"`
|
|
}
|