Files
polaris/pkg/doc.go
2024-10-04 10:45:31 +08:00

21 lines
334 B
Go

package pkg
type Torrent interface {
Name() (string, error)
Progress() (int, error)
Stop() error
Start() error
Remove() error
Save() string
Exists() bool
SeedRatio() (float64, error)
GetHash() string
Reload() error
}
type Downloader interface {
GetAll() ([]Torrent, error)
Download(link, dir string) (Torrent, error)
}