grafana/pkg/models/preferences.go

27 lines
469 B
Go
Raw Normal View History

2016-03-05 15:15:49 -06:00
package models
import (
"errors"
)
// Typed errors
var (
ErrPreferenceNotFound = errors.New("Preference not found")
)
2016-03-06 05:47:39 -06:00
type Preferences struct {
Id int64
PrefId int64
PrefType string
PrefData map[string]interface{}
2016-03-05 15:15:49 -06:00
}
// ---------------------
// COMMANDS
2016-03-06 05:47:39 -06:00
type SavePreferencesCommand struct {
PrefData map[string]interface{} `json:"prefData" binding:"Required"`
PrefId int64 `json:"-"`
2016-03-05 15:15:49 -06:00
PrefType string `json:"-"`
}