Versions in this module Expand all Collapse all v0 v0.1.0 Nov 21, 2026 Changes in this version + type DownloaderClient interface + ClientFor func(ctx context.Context, configID string) (plugin.DownloadClient, error) + type FailureHandler interface + HandleDownloadFailed func(ctx context.Context, g db.GrabHistory, clientError string) error + type Item struct + ClientItemID string + DownloadClientID string + DownloadedBytes int64 + EpisodeID string + GrabID string + GrabbedAt time.Time + Protocol string + ReleaseTitle string + SeriesID string + Size int64 + Status string + type PathMapper interface + Map func(ctx context.Context, clientID, path string) string + type Service struct + func NewService(q db.Querier, downloader DownloaderClient, bus *events.Bus, ...) *Service + func (s *Service) GetQueue(ctx context.Context) ([]Item, error) + func (s *Service) GetQueueItem(ctx context.Context, grabID string) (Item, error) + func (s *Service) PollAndUpdate(ctx context.Context) error + func (s *Service) RemoveFromQueue(ctx context.Context, grabID string, deleteFiles bool) error + func (s *Service) SetFailureHandler(h FailureHandler) + func (s *Service) SetPathMapper(m PathMapper)