videomanager

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VideoManager

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

func New

func New(dataDir string, videoStore VideoStore) *VideoManager

func (*VideoManager) DownloadStatus

func (vm *VideoManager) DownloadStatus(videoRef models.VideoRef) (models.DownloadStatus, error)

func (*VideoManager) Get added in v0.0.5

func (vm *VideoManager) Get(id uuid.UUID) (*models.SavedVideo, error)

func (*VideoManager) List

func (vm *VideoManager) List() ([]models.SavedVideo, error)

type VideoStore

type VideoStore interface {
	ListRecent() ([]models.SavedVideo, error)
	FindWithID(id uuid.UUID) (*models.SavedVideo, error)
	FindWithExtID(videoRef models.VideoRef) (*models.SavedVideo, error)
}

Jump to

Keyboard shortcuts

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