yoitsu

package
v0.0.0-...-bd23c5e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KeyNoSubDir string = "no-sub-dir"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	services.Client
	GetTorrents() utils.SafeMap[string, Torrent]
	CanStartNext() bool
	Shutdown() error
}

Client wrapper around the torrent.Client struct

type Config

type Config interface {
	GetRootDir() string
	GetMaxConcurrentTorrents() int
}

type FileEntry

type FileEntry interface {
	Path() string
	Length() int64
}

type Torrent

type Torrent interface {
	services.Content
	GetTorrent() *torrent.Torrent
	LoadInfo()
	StartDownload()
	Cancel()
	IsDone() bool
	Cleanup(root string)
	Files() int
}

Torrent wrapper around torrent.Torrent

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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