Files
grafana/pkg/stores/store.go
2014-08-22 18:05:37 +02:00

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"})
}