jobsmanager

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobStore

type JobStore interface {
	Job(id uuid.UUID) (models.Job, error)
	List() ([]models.Job, error)
	Save(job models.Job) error
}

type JobsManager

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

func New

func New(dispatcher *jobs.Dispatcher, jobStore JobStore) *JobsManager

func (*JobsManager) Dispatcher

func (jm *JobsManager) Dispatcher() *jobs.Dispatcher

func (*JobsManager) HistoricalJobs

func (jm *JobsManager) HistoricalJobs() ([]models.Job, error)

func (*JobsManager) Job

func (jm *JobsManager) Job(id uuid.UUID) (models.Job, error)

func (*JobsManager) RecentJobs

func (jm *JobsManager) RecentJobs() []models.Job

func (*JobsManager) Start

func (jm *JobsManager) Start()

type VideoDownloadTask

type VideoDownloadTask interface {
	VideoExtID() string
	VideoTitle() string
}

Jump to

Keyboard shortcuts

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