store.go 294 B

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