Documentation ¶
Index ¶
- func ProvideService(db db.DB) thumbs.DashboardThumbService
- type Service
- func (s *Service) FindDashboardsWithStaleThumbnails(ctx context.Context, cmd *thumbs.FindDashboardsWithStaleThumbnailsCommand) ([]*thumbs.DashboardWithStaleThumbnail, error)
- func (s *Service) FindThumbnailCount(ctx context.Context, cmd *thumbs.FindDashboardThumbnailCountCommand) (int64, error)
- func (s *Service) GetThumbnail(ctx context.Context, query *thumbs.GetDashboardThumbnailCommand) (*thumbs.DashboardThumbnail, error)
- func (s *Service) SaveThumbnail(ctx context.Context, cmd *thumbs.SaveDashboardThumbnailCommand) (*thumbs.DashboardThumbnail, error)
- func (s *Service) UpdateThumbnailState(ctx context.Context, cmd *thumbs.UpdateThumbnailStateCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideService ¶
func ProvideService(db db.DB) thumbs.DashboardThumbService
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) FindDashboardsWithStaleThumbnails ¶
func (s *Service) FindDashboardsWithStaleThumbnails(ctx context.Context, cmd *thumbs.FindDashboardsWithStaleThumbnailsCommand) ([]*thumbs.DashboardWithStaleThumbnail, error)
func (*Service) FindThumbnailCount ¶
func (*Service) GetThumbnail ¶
func (s *Service) GetThumbnail(ctx context.Context, query *thumbs.GetDashboardThumbnailCommand) (*thumbs.DashboardThumbnail, error)
func (*Service) SaveThumbnail ¶
func (s *Service) SaveThumbnail(ctx context.Context, cmd *thumbs.SaveDashboardThumbnailCommand) (*thumbs.DashboardThumbnail, error)
func (*Service) UpdateThumbnailState ¶
Click to show internal directories.
Click to hide internal directories.