https://github.com/golift/deluge
Go Library to interact with Deluge API.
https://github.com/golift/deluge
active-transfers deluge-api golang-library golang-module
Last synced: 11 days ago
JSON representation
Go Library to interact with Deluge API.
- Host: GitHub
- URL: https://github.com/golift/deluge
- Owner: golift
- License: mit
- Created: 2019-01-24T02:53:46.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T13:56:07.000Z (18 days ago)
- Last Synced: 2025-04-15T03:55:36.950Z (11 days ago)
- Topics: active-transfers, deluge-api, golang-library, golang-module
- Language: Go
- Homepage: https://golift.io/discord
- Size: 67.4 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deluge
Simple library to do specific things with Deluge Web UI API.
Pretty much only gets a list of active transfers. Has a lot of boiler plate for
other features. I had no use for more than an active transfer list, and all
the meta data for each transfer.Pull requests and feedback welcomed!
```golang
package mainimport (
"log"
"time"
"golift.io/deluge"
)func main() {
config := deluge.Config{
URL: "http://127.0.0.1:8112",
Password: "superSe(re7",
}
server, err := deluge.New(context.TODO(), &config)
if err != nil {
log.Fatal(err)
}
// This is the only method available for retrieving data.
transfers, err := server.GetXfers()
if err != nil {
log.Fatal(err)
}
for _, xfer := range transfers {
log.Println(xfer.Name)
}
}
```