2022-06-14 13:41:29 -04:00
|
|
|
package dashboardsnapshots
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
)
|
|
|
|
|
|
2022-06-17 09:09:01 -04:00
|
|
|
//go:generate mockery --name Service --structname MockService --inpackage --filename service_mock.go
|
2022-06-14 13:41:29 -04:00
|
|
|
type Service interface {
|
2023-01-25 15:09:44 +01:00
|
|
|
CreateDashboardSnapshot(context.Context, *CreateDashboardSnapshotCommand) (*DashboardSnapshot, error)
|
2022-06-17 09:09:01 -04:00
|
|
|
DeleteDashboardSnapshot(context.Context, *DeleteDashboardSnapshotCommand) error
|
|
|
|
|
DeleteExpiredSnapshots(context.Context, *DeleteExpiredSnapshotsCommand) error
|
2023-01-25 15:09:44 +01:00
|
|
|
GetDashboardSnapshot(context.Context, *GetDashboardSnapshotQuery) (*DashboardSnapshot, error)
|
|
|
|
|
SearchDashboardSnapshots(context.Context, *GetDashboardSnapshotsQuery) (DashboardSnapshotsList, error)
|
2022-06-14 13:41:29 -04:00
|
|
|
}
|