mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
72f934de01
* backend/dashboard snapshots: refactor leftover models and mocks * Move all dashboard snapshot-related models into the dashboardsnapshotservice package * Remove leftover dashboard-related mocks from the mockstore
15 lines
571 B
Go
15 lines
571 B
Go
package dashboardsnapshots
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
//go:generate mockery --name Service --structname MockService --inpackage --filename service_mock.go
|
|
type Service interface {
|
|
CreateDashboardSnapshot(context.Context, *CreateDashboardSnapshotCommand) error
|
|
DeleteDashboardSnapshot(context.Context, *DeleteDashboardSnapshotCommand) error
|
|
DeleteExpiredSnapshots(context.Context, *DeleteExpiredSnapshotsCommand) error
|
|
GetDashboardSnapshot(context.Context, *GetDashboardSnapshotQuery) error
|
|
SearchDashboardSnapshots(context.Context, *GetDashboardSnapshotsQuery) error
|
|
}
|