mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
16 lines
698 B
Go
16 lines
698 B
Go
|
package dashboardthumbs
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/grafana/grafana/pkg/models"
|
||
|
)
|
||
|
|
||
|
type Service interface {
|
||
|
GetThumbnail(ctx context.Context, query *models.GetDashboardThumbnailCommand) (*models.DashboardThumbnail, error)
|
||
|
SaveThumbnail(ctx context.Context, cmd *models.SaveDashboardThumbnailCommand) (*models.DashboardThumbnail, error)
|
||
|
UpdateThumbnailState(ctx context.Context, cmd *models.UpdateThumbnailStateCommand) error
|
||
|
FindThumbnailCount(ctx context.Context, cmd *models.FindDashboardThumbnailCountCommand) (int64, error)
|
||
|
FindDashboardsWithStaleThumbnails(ctx context.Context, cmd *models.FindDashboardsWithStaleThumbnailsCommand) ([]*models.DashboardWithStaleThumbnail, error)
|
||
|
}
|