Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StremioCleanupService ¶
type StremioCleanupService struct {
// contains filtered or unexported fields
}
StremioCleanupService periodically removes expired Stremio-originated queue items along with their associated .meta files, storage directory, and persistent NZB files.
func NewStremioCleanupService ¶
func NewStremioCleanupService( queueRepo *database.Repository, metadataService *metadata.MetadataService, configGetter config.ConfigGetter, ) *StremioCleanupService
NewStremioCleanupService creates a new StremioCleanupService.
func (*StremioCleanupService) StartCleanup ¶
func (s *StremioCleanupService) StartCleanup(ctx context.Context)
StartCleanup launches a background goroutine that runs cleanup every hour. The goroutine stops when ctx is cancelled.
Click to show internal directories.
Click to hide internal directories.