2022-09-27 07:46:03 -05:00
|
|
|
package thumbs
|
2022-08-31 15:45:41 -05:00
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
2022-09-27 07:46:03 -05:00
|
|
|
type DashboardThumbService interface {
|
2022-09-26 05:37:34 -05:00
|
|
|
GetThumbnail(ctx context.Context, query *GetDashboardThumbnailCommand) (*DashboardThumbnail, error)
|
|
|
|
SaveThumbnail(ctx context.Context, cmd *SaveDashboardThumbnailCommand) (*DashboardThumbnail, error)
|
|
|
|
UpdateThumbnailState(ctx context.Context, cmd *UpdateThumbnailStateCommand) error
|
|
|
|
FindThumbnailCount(ctx context.Context, cmd *FindDashboardThumbnailCountCommand) (int64, error)
|
|
|
|
FindDashboardsWithStaleThumbnails(ctx context.Context, cmd *FindDashboardsWithStaleThumbnailsCommand) ([]*DashboardWithStaleThumbnail, error)
|
2022-08-31 15:45:41 -05:00
|
|
|
}
|