releasedownload

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadService

type DownloadService struct {
	// contains filtered or unexported fields
}

func NewDownloadService

func NewDownloadService(log logger.Logger, repo domain.ReleaseRepo, indexerRepo domain.IndexerRepo, proxySvc proxy.Service) *DownloadService

func (*DownloadService) DownloadRelease

func (s *DownloadService) DownloadRelease(ctx context.Context, rls *domain.Release) error

func (*DownloadService) ResolveMagnetURI

func (s *DownloadService) ResolveMagnetURI(ctx context.Context, r *domain.Release) error

type RetriableError added in v1.47.0

type RetriableError struct {
	Err        error
	RetryAfter time.Duration
}

RetriableError is a custom error that contains a positive duration for the next retry

func (*RetriableError) Error added in v1.47.0

func (e *RetriableError) Error() string

Error returns error message and a Retry-After duration

Jump to

Keyboard shortcuts

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