Versions in this module Expand all Collapse all v0 v0.14.1 Nov 24, 2026 v0.13.0 Nov 21, 2026 Changes in this version + type CollectionStats struct + EditionMismatches int64 + Missing int64 + Monitored int64 + NeedsUpgrade int64 + RecentlyAdded int64 + TotalMovies int64 + WithFile int64 + type DecadeBucket struct + Count int64 + Decade string + type GenreBucket struct + Count int64 + Genre string + type GrabStats struct + Failed int64 + SuccessRate float64 + Successful int64 + TotalGrabs int64 + type GrowthPoint struct + Added int64 + Cumulative int64 + Month string + type IndexerStat struct + GrabCount int64 + IndexerID string + IndexerName string + SuccessRate float64 + type QualityBucket struct + Codec string + Count int64 + HDR string + Resolution string + Source string + type QualityTier struct + Count int64 + Resolution string + Source string + type Service struct + func NewService(q dbgen.Querier, cutoff cutoffUnmetLister) *Service + func (s *Service) Collection(ctx context.Context) (CollectionStats, error) + func (s *Service) DecadeDistribution(ctx context.Context) ([]DecadeBucket, error) + func (s *Service) GenreDistribution(ctx context.Context) ([]GenreBucket, error) + func (s *Service) GrabPerformance(ctx context.Context) (GrabStats, []IndexerStat, error) + func (s *Service) LibraryGrowth(ctx context.Context) ([]GrowthPoint, error) + func (s *Service) MovieIDsByQualityTier(ctx context.Context, resolution, source string) ([]string, error) + func (s *Service) PruneSnapshots(ctx context.Context, olderThan time.Duration) error + func (s *Service) QualityDistribution(ctx context.Context) ([]QualityBucket, error) + func (s *Service) QualityTiers(ctx context.Context) ([]QualityTier, error) + func (s *Service) Storage(ctx context.Context) (StorageStat, error) + func (s *Service) StorageTrend(ctx context.Context, limit int) ([]StoragePoint, error) + func (s *Service) TakeSnapshot(ctx context.Context) error + type StoragePoint struct + CapturedAt time.Time + FileCount int64 + TotalBytes int64 + type StorageStat struct + FileCount int64 + TotalBytes int64