2021-12-21 23:05:00 +01:00
|
|
|
package download
|
|
|
|
|
2021-12-22 20:21:24 +01:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"downloader/internal/core/entities"
|
|
|
|
)
|
2021-12-21 23:05:00 +01:00
|
|
|
|
|
|
|
type BackgroundService interface {
|
2021-12-22 20:21:24 +01:00
|
|
|
Run(ctx context.Context, download *entities.Download) error
|
2021-12-21 23:05:00 +01:00
|
|
|
}
|