Lots of work on search and dashboard loading, trying to generalize concepts and code, #960
This commit is contained in:
@@ -15,6 +15,12 @@ var (
|
||||
ErrDashboardVersionMismatch = errors.New("The dashboard has been changed by someone else")
|
||||
)
|
||||
|
||||
var (
|
||||
DashTypeJson = "file"
|
||||
DashTypeDB = "db"
|
||||
DashTypeScript = "script"
|
||||
)
|
||||
|
||||
// Dashboard model
|
||||
type Dashboard struct {
|
||||
Id int64
|
||||
|
||||
@@ -9,7 +9,8 @@ type SearchResult struct {
|
||||
type DashboardSearchHit struct {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Slug string `json:"slug"`
|
||||
Uri string `json:"uri"`
|
||||
Type string `json:"type"`
|
||||
Tags []string `json:"tags"`
|
||||
IsStarred bool `json:"isStarred"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user