Versions in this module Expand all Collapse all v1 v1.0.0 Jul 12, 2026 Changes in this version + var ErrDuplicate = errors.New("request: already requested or in library") + type Manager interface + Approve func(ctx context.Context, id, adminID uint32, qualityProfile string) (*ent.Request, error) + Create func(ctx context.Context, mediaType string, mediaID uint32, title string, ...) (*ent.Request, error) + Deny func(ctx context.Context, id, adminID uint32, reason string) (*ent.Request, error) + Get func(ctx context.Context, id uint32) (*ent.Request, error) + List func(ctx context.Context, p db.ListRequestsParams) ([]*ent.Request, int, error) + Reopen func(ctx context.Context, id uint32) (*ent.Request, error) + type MovieAdder interface + Add func(ctx context.Context, tmdbID uint32, qualityProfile string) (*ent.Movie, string, error) + GetByTMDBID func(ctx context.Context, tmdbID uint32) (*ent.Movie, error) + type Service struct + func NewService(store db.Store, movies MovieAdder, shows ShowAdder) *Service + func (s *Service) Approve(ctx context.Context, id, adminID uint32, qualityProfile string) (*ent.Request, error) + func (s *Service) Create(ctx context.Context, mediaType string, mediaID uint32, title string, ...) (*ent.Request, error) + func (s *Service) Deny(ctx context.Context, id, adminID uint32, reason string) (*ent.Request, error) + func (s *Service) Get(ctx context.Context, id uint32) (*ent.Request, error) + func (s *Service) List(ctx context.Context, p db.ListRequestsParams) ([]*ent.Request, int, error) + func (s *Service) Reopen(ctx context.Context, id uint32) (*ent.Request, error) + type ShowAdder interface + Add func(ctx context.Context, tvdbID uint32, qualityProfile string) (*ent.TVShow, error)