Documentation
¶
Index ¶
- type Service
- func (s *Service) Cancel(id string) bool
- func (s *Service) CancelMany(ids []string) int
- func (s *Service) ClearHistory(ctx context.Context) (int64, error)
- func (s *Service) DeleteMany(ctx context.Context, ids []string) (int64, error)
- func (s *Service) EnqueueByReleaseID(ctx context.Context, releaseID, title string) (*domain.QueueItem, error)
- func (s *Service) EnqueueNZB(ctx context.Context, filename string, file io.Reader) (*domain.QueueItem, error)
- func (s *Service) EnqueueNZBWithCategory(ctx context.Context, filename, category string, file io.Reader) (*domain.QueueItem, error)
- func (s *Service) GetItem(ctx context.Context, id string) (*domain.QueueItem, error)
- func (s *Service) GetItemEvents(ctx context.Context, id string) ([]*domain.QueueItemEvent, error)
- func (s *Service) GetItemFiles(ctx context.Context, id string) ([]*domain.DownloadFile, error)
- func (s *Service) IsPaused() bool
- func (s *Service) ListActive() []*domain.QueueItem
- func (s *Service) ListHistory(ctx context.Context, status string, limit, offset int) ([]*domain.QueueItem, int, error)
- func (s *Service) Pause() bool
- func (s *Service) Resume() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CancelMany ¶
func (*Service) DeleteMany ¶
func (*Service) EnqueueByReleaseID ¶
func (*Service) EnqueueNZB ¶
func (s *Service) EnqueueNZB(ctx context.Context, filename string, file io.Reader) (*domain.QueueItem, error)
CHANGED: keep existing native API call shape as a wrapper.
func (*Service) EnqueueNZBWithCategory ¶
func (s *Service) EnqueueNZBWithCategory(ctx context.Context, filename, category string, file io.Reader) (*domain.QueueItem, error)
CHANGED: SAB-compatible enqueue path can preserve client category.
func (*Service) GetItemEvents ¶
func (*Service) GetItemFiles ¶
func (*Service) ListActive ¶
func (*Service) ListHistory ¶
Click to show internal directories.
Click to hide internal directories.