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