Implement the list endpoint for qbittorrent

This commit is contained in:
Alexander
2026-05-06 22:53:55 +02:00
parent 36416081c1
commit 6071bc7980
6 changed files with 288 additions and 9 deletions
+32
View File
@@ -0,0 +1,32 @@
package torrent
type TorrentInfo struct {
Hash string
Name string
Size int64
Progress float64
DlSpeed int64
UpSpeed int64
NumSeeds int32
NumLeechs int32
State string
ETA int64
Ratio float64
Category string
Tags string
AddedOn int64
CompletionOn int64
SavePath string
ContentPath string
Downloaded int64
Uploaded int64
Tracker string
SeedingTime int64
AmountLeft int64
Availability float64
}
type TorrentClient interface {
Login(username string, password string) (string, error)
List() ([]TorrentInfo, error)
}