Files
grafana/pkg/services/thumbs/dashboardthumbsimpl/store.go
ying-jeanne b96a3832d0 StoreSplit: move dashboard thumbs into thumbs service (#55800)
* move dashboard thumbs into thumbs service

* rename some variables
2022-09-27 08:46:03 -04:00

16 lines
669 B
Go

package dashboardthumbsimpl
import (
"context"
"github.com/grafana/grafana/pkg/services/thumbs"
)
type store interface {
Get(ctx context.Context, query *thumbs.GetDashboardThumbnailCommand) (*thumbs.DashboardThumbnail, error)
Save(ctx context.Context, cmd *thumbs.SaveDashboardThumbnailCommand) (*thumbs.DashboardThumbnail, error)
UpdateState(ctx context.Context, cmd *thumbs.UpdateThumbnailStateCommand) error
Count(ctx context.Context, cmd *thumbs.FindDashboardThumbnailCountCommand) (int64, error)
FindDashboardsWithStaleThumbnails(ctx context.Context, cmd *thumbs.FindDashboardsWithStaleThumbnailsCommand) ([]*thumbs.DashboardWithStaleThumbnail, error)
}