Skip to content

autobrr/go-rtorrent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-rtorrent

GoDoc Coverage Status MIT license

rTorrent XMLRPC Bindings for Go (golang)

Fork of github.com/mrobinsn/go-rtorrent.

Documentation

GoDoc

Features

  • Get IP, Name, Up/Down totals
  • Get torrents within a view
  • Get torrent by hash
  • Get files for torrents
  • Set the label on a torrent
  • Add a torrent by URL or by metadata
  • Delete a torrent (including files)

Installation

To install the package, run go get github.com/autobrr/go-rtorrent

To use it in application, import "github.com/autobrr/go-rtorrent"

Library Usage

client := rtorrent.NewClient(rtorrent.Config{Addr: "http://my-rtorrent.com/RPC2"})
name, _ := client.Name(context.Background())
fmt.Printf("My rTorrent's name: %v", name)

You can connect to a server using Basic Authentication by adding User and Pass to the config:

client := rtorrent.NewClient(rtorrent.Config{Addr: "http://my-rtorrent.com/RPC2", BasicUser: "user", BasicPass: "pass"})

Contributing

Pull requests are welcome, please ensure you add relevant tests for any new/changed functionality.

About

rTorrent XMLRPC Bindings for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.7%
  • Shell 0.3%