grafana/pkg/services/preference/pref.go
idafurjes bdf50f3dd2
Dashboards: Split GetDashboardVersions method (#49967)
* Split GetDashboarVersions method

* Add sqlstore dialect and tests

* Fix signature of PAtchPreference

* Add GetDialect to sqlstore and remove GetDashboardVersions

* Add GetDialect to db interface

* Implement List

* add deleted test function

* Remove GetDialect from sqlstore interface

* Remove deleted method from mock

* Refactor test
2022-06-02 15:59:05 +02:00

14 lines
351 B
Go

package pref
import (
"context"
)
type Service interface {
GetWithDefaults(context.Context, *GetPreferenceWithDefaultsQuery) (*Preference, error)
Get(context.Context, *GetPreferenceQuery) (*Preference, error)
Save(context.Context, *SavePreferenceCommand) error
Patch(context.Context, *PatchPreferenceCommand) error
GetDefaults() *Preference
}