tasks

package
v0.0.0-...-63cad89 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeDownloadVideo = "video:download"
)

Variables

This section is empty.

Functions

func NewDownloadVideoTask

func NewDownloadVideoTask(id string) (*asynq.Task, error)

Types

type DownloadVideoPayload

type DownloadVideoPayload struct {
	ID string `json:"id"`
}

type VideoDownloader

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

func NewVideoDownloader

func NewVideoDownloader(mediaService mediaService) *VideoDownloader

func (*VideoDownloader) ProcessTask

func (d *VideoDownloader) ProcessTask(ctx context.Context, t *asynq.Task) error

Jump to

Keyboard shortcuts

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