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 Service interface {
|
2021-12-22 20:21:24 +01:00
|
|
|
Schedule(ctx context.Context, link string) (*entities.Download, error)
|
|
|
|
Get(ctx context.Context, id string) (*entities.Download, error)
|
|
|
|
GetAll(ctx context.Context, active bool) ([]*entities.Download, error)
|
2021-12-26 00:02:51 +01:00
|
|
|
GetDone(ctx context.Context) ([]*entities.Download, error)
|
2021-12-21 23:05:00 +01:00
|
|
|
}
|