grafana/pkg/stores/store.go
2014-08-12 20:45:41 +02:00

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