Documentation ¶
Index ¶
- Constants
- func NewDaemon(ctx context.Context, koanf *koanf.Koanf) (daemon.Daemon, error)
- type Config
- type Daemon
- func (d *Daemon) Cleanup(ctx context.Context, run bool) ([]string, error)
- func (d *Daemon) CleanupUnregistred(ctx context.Context, run bool) ([]string, error)
- func (d *Daemon) Close(ctx context.Context) error
- func (d *Daemon) Extensions() []string
- func (fs *Daemon) GetFS(ctx context.Context, sourcePath string, file vfs.File) (vfs.Filesystem, error)
- func (d *Daemon) ListTorrents(ctx context.Context) ([]*qbittorrent.TorrentInfo, error)
- func (d *Daemon) Name() string
- func (d *Daemon) SourceFiles(ctx context.Context, hash string) ([]string, error)
- type FS
- func (f *FS) Open(ctx context.Context, name string) (vfs.File, error)
- func (f *FS) ReadDir(ctx context.Context, name string) ([]fs.DirEntry, error)
- func (f *FS) Rename(ctx context.Context, oldpath string, newpath string) error
- func (f *FS) Stat(ctx context.Context, name string) (fs.FileInfo, error)
- func (f *FS) Unlink(ctx context.Context, filename string) error
- type File
- func (f *File) Close(ctx context.Context) error
- func (f *File) Info() (fs.FileInfo, error)
- func (f *File) IsDir() bool
- func (f *File) Name() string
- func (f *File) Read(ctx context.Context, p []byte) (int, error)
- func (f *File) ReadAt(ctx context.Context, p []byte, off int64) (int, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Size() int64
- func (f *File) Type() fs.FileMode
Constants ¶
View Source
const DaemonName = "qbittorrent"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) CleanupUnregistred ¶
func (*Daemon) Extensions ¶
func (*Daemon) ListTorrents ¶
func (d *Daemon) ListTorrents(ctx context.Context) ([]*qbittorrent.TorrentInfo, error)
type FS ¶
type FS struct { vfs.FilesystemPrototype // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.