mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
More general backend work, in the middle of the night... Zzzz
This commit is contained in:
@@ -38,6 +38,19 @@ type Collaborator struct {
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
type DataSource struct {
|
||||
Id int64 `json:"id"`
|
||||
AccountId int64 `json:"accountId"`
|
||||
|
||||
Name string `json:"name"`
|
||||
Type models.DsType `json:"type"`
|
||||
Access models.DsAccess `json:"access"`
|
||||
Url string `json:"url"`
|
||||
Password string `json:"password"`
|
||||
User string `json:"user"`
|
||||
BasicAuth bool `json:"basicAuth"`
|
||||
}
|
||||
|
||||
func NewCurrentUser(account *models.Account) *CurrentUser {
|
||||
model := &CurrentUser{}
|
||||
if account != nil {
|
||||
|
||||
Reference in New Issue
Block a user