Versions in this module Expand all Collapse all v0 v0.1.0 Nov 21, 2026 Changes in this version + const ReasonDownloadFailed + const ReasonImportFailed + const ReasonStallActivityLost + const ReasonStallNoPeersEver + const ReasonUserMarked + var ErrAlreadyBlocklisted = errors.New("release already blocklisted") + type Entry struct + AddedAt time.Time + EpisodeID string + ID string + IndexerID string + InfoHash string + Notes string + Protocol string + Reason string + ReleaseGUID string + ReleaseTitle string + SeriesID string + SeriesTitle string + Size int64 + type Service struct + func NewService(q db.Querier) *Service + func (s *Service) Add(ctx context.Context, ...) error + func (s *Service) AddFromDownloadFailure(ctx context.Context, p StallEntry) error + func (s *Service) AddFromImportFailure(ctx context.Context, p StallEntry) error + func (s *Service) AddFromStall(ctx context.Context, p StallEntry) error + func (s *Service) BlocklistedGUIDs(ctx context.Context, guids []string) (map[string]bool, error) + func (s *Service) Clear(ctx context.Context) error + func (s *Service) CountRecentStalls(ctx context.Context, seriesID, episodeID string) (int64, error) + func (s *Service) Delete(ctx context.Context, id string) error + func (s *Service) IsBlocklisted(ctx context.Context, releaseGUID string) (bool, error) + func (s *Service) IsBlocklistedByTitle(ctx context.Context, releaseTitle string) (bool, error) + func (s *Service) IsBlocklistedGUIDOrInfoHash(ctx context.Context, releaseGUID, infoHash string) (bool, error) + func (s *Service) List(ctx context.Context, page, perPage int) ([]Entry, int64, error) + func (s *Service) RemoveByGUID(ctx context.Context, releaseGUID string) error + type StallEntry struct + EpisodeID string + IndexerID string + InfoHash string + Notes string + Protocol string + Reason string + ReleaseGUID string + ReleaseTitle string + SeriesID string + Size int64