* Use dbName in jsonData instead of database * Use dbName in instead of database * Remove database fields and define dbName instead * Fix tests * set database field as empty string
20 lines
426 B
Go
20 lines
426 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"`
|
|
}
|