mirror of https://github.com/grafana/grafana
parent
f99e1ba441
commit
d562dcd90c
@ -0,0 +1,31 @@ |
|||||||
|
package models |
||||||
|
|
||||||
|
type SearchResult struct { |
||||||
|
Dashboards []*DashboardSearchHit `json:"dashboards"` |
||||||
|
Tags []*DashboardTagCloudItem `json:"tags"` |
||||||
|
TagsOnly bool `json:"tagsOnly"` |
||||||
|
} |
||||||
|
|
||||||
|
type DashboardSearchHit struct { |
||||||
|
Title string `json:"title"` |
||||||
|
Slug string `json:"slug"` |
||||||
|
Tags []string `json:"tags"` |
||||||
|
} |
||||||
|
|
||||||
|
type DashboardTagCloudItem struct { |
||||||
|
Term string `json:"term"` |
||||||
|
Count int `json:"count"` |
||||||
|
} |
||||||
|
|
||||||
|
type SearchDashboardsQuery struct { |
||||||
|
Title string |
||||||
|
Tag string |
||||||
|
AccountId int64 |
||||||
|
|
||||||
|
Result []*DashboardSearchHit |
||||||
|
} |
||||||
|
|
||||||
|
type GetDashboardTagsQuery struct { |
||||||
|
AccountId int64 |
||||||
|
Result []*DashboardTagCloudItem |
||||||
|
} |
@ -0,0 +1,9 @@ |
|||||||
|
package account |
||||||
|
|
||||||
|
import ( |
||||||
|
"github.com/torkelo/grafana-pro/pkg/bus" |
||||||
|
) |
||||||
|
|
||||||
|
func InitAccountService() { |
||||||
|
bus.ListenTo() |
||||||
|
} |
Loading…
Reference in new issue