Documentation
¶
Index ¶
- Constants
- Variables
- type Rtorrent
- func (r *Rtorrent) Check(ts ...*Torrent) error
- func (r *Rtorrent) Delete(withData bool, ts ...*Torrent) error
- func (r *Rtorrent) Download(url string) error
- func (r *Rtorrent) GetTorrent(hash string) (*Torrent, error)
- func (r *Rtorrent) Speeds() (down, up uint64)
- func (r *Rtorrent) Start(ts ...*Torrent) error
- func (r *Rtorrent) Stats() (*stats, error)
- func (r *Rtorrent) Stop(ts ...*Torrent) error
- func (r *Rtorrent) Torrents() (Torrents, error)
- type Torrent
- type Torrents
Constants ¶
View Source
const ( Leeching = "Leeching" Seeding = "Seeding" Complete = "Complete" Stopped = "Stopped" Hashing = "Hashing" Error = "Error" )
View Source
const ( DefaultSorting sorting = iota ByName ByNameRev ByDownRate ByDownRateRev ByUpRate ByUpRateRev BySize BySizeRev ByRatio ByRatioRev ByAge ByAgeRev ByAgeLoad ByAgeLoadRev ByUpTotal ByUpTotalRev )
Variables ¶
View Source
var CurrentSorting = DefaultSorting
CurrentSorting holds the sorting in use.
Functions ¶
This section is empty.
Types ¶
type Rtorrent ¶
type Rtorrent struct { Version string // contains filtered or unexported fields }
Rtorrent holds the network and address e.g.'tcp|localhost:5000' or 'unix|path/to/socket'.
func NewRtorrent ¶
NewRtorrent takes the address, defined in .rtorrent.rc
func (*Rtorrent) Delete ¶
Delete takes *Torrent or more to 'd.erase' it/them, if withData is true, local data will get deleted too.
func (*Rtorrent) GetTorrent ¶
GetTorrent takes a hash and returns *Torrent
Click to show internal directories.
Click to hide internal directories.