downloader/api/internal/core/services/download/service.go
2021-12-22 20:21:24 +01:00

13 lines
314 B
Go

package download
import (
"context"
"downloader/internal/core/entities"
)
type Service interface {
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)
}