mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
19 lines
482 B
Go
19 lines
482 B
Go
package stores
|
|
|
|
import (
|
|
"github.com/torkelo/grafana-pro/pkg/models"
|
|
)
|
|
|
|
type Store interface {
|
|
GetDashboard(title string, accountId int) (*models.Dashboard, error)
|
|
SaveDashboard(dash *models.Dashboard) error
|
|
Query(query string) ([]*models.SearchResult, error)
|
|
SaveUserAccount(acccount *models.UserAccount) error
|
|
GetUserAccountLogin(emailOrName string) (*models.UserAccount, error)
|
|
Close()
|
|
}
|
|
|
|
func New() Store {
|
|
return NewRethinkStore(&RethinkCfg{DatabaseName: "grafana"})
|
|
}
|