store.go 366 B

12345678910111213141516
  1. package stores
  2. import (
  3. "github.com/torkelo/grafana-pro/pkg/models"
  4. )
  5. type Store interface {
  6. GetDashboardByTitle(id string, accountId string) (*models.Dashboard, error)
  7. SaveDashboard(dash *models.Dashboard) error
  8. Query(query string) ([]*models.SearchResult, error)
  9. Close()
  10. }
  11. func New() Store {
  12. return NewRethinkStore(&RethinkCfg{DatabaseName: "grafana"})
  13. }