2edcf0edbd
* introduce constants file * update frontend to use database field * use dbName field instead of metadata * use secureGrpc * betterer
24 lines
485 B
Go
24 lines
485 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"`
|
|
|
|
// FlightSQL grpc connection
|
|
SecureGrpc bool `json:"secureGrpc"`
|
|
}
|