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

22 lines
345 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
}
type Downloader interface {
GetAll() ([]Torrent, error)
Download(link, dir string) (Torrent, error)
}
type Storage interface {
}