mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 09:05:45 -06:00
17 lines
294 B
Go
17 lines
294 B
Go
package stores
|
|
|
|
import (
|
|
"github.com/torkelo/grafana-pro/pkg/models"
|
|
)
|
|
|
|
type Store interface {
|
|
GetById(id string) (*models.Dashboard, error)
|
|
Save(dash *models.Dashboard) error
|
|
Query(query string) ([]*models.SearchResult, error)
|
|
Close()
|
|
}
|
|
|
|
func New() Store {
|
|
return NewFileStore("data")
|
|
}
|