mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
bdf50f3dd2
* 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
14 lines
351 B
Go
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
|
|
}
|