grafana/pkg/api/api_models.go
2014-08-12 20:45:41 +02:00

20 lines
356 B
Go

package api
type saveDashboardCommand struct {
Id string `json:"id"`
Title string `json:"title"`
Dashboard map[string]interface{}
}
type errorResponse struct {
Message string `json:"message"`
}
type indexViewModel struct {
title string
}
func newErrorResponse(message string) *errorResponse {
return &errorResponse{Message: message}
}