Implement the list endpoint for qbittorrent
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user