stremio

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL