ytdlp

package
v0.0.0-...-8b65fed Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func (*Controller) Downloaded

func (c *Controller) Downloaded() error

func (*Controller) Info

func (c *Controller) Info(ctx context.Context) (ytdlp.Info, error)

func (*Controller) Source

func (c *Controller) Source() Source

func (*Controller) Update

func (c *Controller) Update(ctx context.Context, updater tasks.Updater) error

type Daemon

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

func NewService

func NewService(dataDir string) (*Daemon, error)

func (*Daemon) BuildFS

func (c *Daemon) BuildFS(ctx context.Context, sourcePath string, f vfs.File) (vfs.Filesystem, error)

func (*Daemon) ExecutorName

func (c *Daemon) ExecutorName() string

ExecutorName implements tasks.TaskExecutor.

func (*Daemon) RunTask

func (c *Daemon) RunTask(ctx context.Context, upd tasks.Updater, task tasks.Task) error

type DownloadTask

type DownloadTask struct {
	Name string
}

func (*DownloadTask) Executor

func (d *DownloadTask) Executor() string

Executor implements tasks.Task.

type Source

type Source struct {
	Url string `json:"url"`
}

func (*Source) Name

func (s *Source) Name() string

type SourceFS

type SourceFS struct {
	vfs.DefaultFS
	// contains filtered or unexported fields
}

func (*SourceFS) Open

func (s *SourceFS) Open(ctx context.Context, filename string) (vfs.File, error)

Open implements vfs.Filesystem.

func (*SourceFS) ReadDir

func (s *SourceFS) ReadDir(ctx context.Context, path string) ([]fs.DirEntry, error)

ReadDir implements vfs.Filesystem.

func (*SourceFS) Rename

func (s *SourceFS) Rename(ctx context.Context, oldpath string, newpath string) error

Rename implements vfs.Filesystem.

func (*SourceFS) Stat

func (s *SourceFS) Stat(ctx context.Context, filename string) (fs.FileInfo, error)

Stat implements vfs.Filesystem.

func (s *SourceFS) Unlink(ctx context.Context, filename string) error

Unlink implements vfs.Filesystem.

Jump to

Keyboard shortcuts

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