qbittorrent

package module
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: 37 Imported by: 0

Documentation

Index

Constants

View Source
const DaemonName = "qbittorrent"

Variables

This section is empty.

Functions

func NewDaemon

func NewDaemon(ctx context.Context, koanf *koanf.Koanf) (daemon.Daemon, error)

Types

type Config

type Config struct {
	DataFolder     string `koanf:"data_folder,omitempty"`
	MetadataFolder string `koanf:"metadata_folder,omitempty"`
}

type Daemon

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

func (*Daemon) Cleanup

func (d *Daemon) Cleanup(ctx context.Context, run bool) ([]string, error)

func (*Daemon) CleanupUnregistred

func (d *Daemon) CleanupUnregistred(ctx context.Context, run bool) ([]string, error)

func (*Daemon) Close

func (d *Daemon) Close(ctx context.Context) error

func (*Daemon) Extensions

func (d *Daemon) Extensions() []string

func (*Daemon) GetFS

func (fs *Daemon) GetFS(ctx context.Context, sourcePath string, file vfs.File) (vfs.Filesystem, error)

func (*Daemon) ListTorrents

func (d *Daemon) ListTorrents(ctx context.Context) ([]*qbittorrent.TorrentInfo, error)

func (*Daemon) Name

func (d *Daemon) Name() string

func (*Daemon) SourceFiles

func (d *Daemon) SourceFiles(ctx context.Context, hash string) ([]string, error)

type FS

type FS struct {
	vfs.FilesystemPrototype
	// contains filtered or unexported fields
}

func (*FS) Open

func (f *FS) Open(ctx context.Context, name string) (vfs.File, error)

Open implements vfs.Filesystem.

func (*FS) ReadDir

func (f *FS) ReadDir(ctx context.Context, name string) ([]fs.DirEntry, error)

ReadDir implements vfs.Filesystem.

func (*FS) Rename

func (f *FS) Rename(ctx context.Context, oldpath string, newpath string) error

func (*FS) Stat

func (f *FS) Stat(ctx context.Context, name string) (fs.FileInfo, error)

Stat implements vfs.Filesystem.

func (f *FS) Unlink(ctx context.Context, filename string) error

Unlink implements vfs.Filesystem.

type File

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

func (*File) Close

func (f *File) Close(ctx context.Context) error

Close implements vfs.File.

func (*File) Info

func (f *File) Info() (fs.FileInfo, error)

Info implements vfs.File.

func (*File) IsDir

func (f *File) IsDir() bool

IsDir implements vfs.File.

func (*File) Name

func (f *File) Name() string

Name implements vfs.File.

func (*File) Read

func (f *File) Read(ctx context.Context, p []byte) (int, error)

Read implements vfs.File.

func (*File) ReadAt

func (f *File) ReadAt(ctx context.Context, p []byte, off int64) (int, error)

ReadAt implements vfs.File.

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

Seek implements vfs.File.

func (*File) Size

func (f *File) Size() int64

Size implements vfs.File.

func (*File) Type

func (f *File) Type() fs.FileMode

Type implements vfs.File.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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