rtorrent

package module
v0.0.0-...-58e7d49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 2 Imported by: 1 module, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

rtorrent GoDoc Build Status Coverage Status Report Card

Package rtorrent implements a client for rTorrent. MIT Licensed.

Documentation

Overview

Package rtorrent implements a client for rTorrent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Downloads *DownloadService
	// contains filtered or unexported fields
}

A Client is an rTorrent client. It can be used to retrieve a variety of statistics from rTorrent.

func New

func New(addr string, transport http.RoundTripper) (*Client, error)

New creates a new Client using the input XML-RPC address and an optional transport. If transport is nil, a default one will be used.

func (*Client) Close

func (c *Client) Close() error

Close frees a Client's resources.

func (*Client) DownloadRate

func (c *Client) DownloadRate() (int, error)

DownloadRate retrieves the current download rate in bytes from rTorrent.

func (*Client) DownloadTotal

func (c *Client) DownloadTotal() (int, error)

DownloadTotal retrieves the total number of downloaded bytes since rTorrent startup.

func (*Client) UploadRate

func (c *Client) UploadRate() (int, error)

UploadRate retrieves the current upload rate in bytes from rTorrent.

func (*Client) UploadTotal

func (c *Client) UploadTotal() (int, error)

UploadTotal retrieves the total number of uploaded bytes since rTorrent startup.

type DownloadService

type DownloadService struct {
	// contains filtered or unexported fields
}

A DownloadService is a wrapper for Client methods which operate on downloads.

func (*DownloadService) Active

func (s *DownloadService) Active() ([]string, error)

Active retrieves a list of active downloads from rTorrent.

func (*DownloadService) All

func (s *DownloadService) All() ([]string, error)

All retrieves a list of all downloads from rTorrent.

func (*DownloadService) BaseFilename

func (s *DownloadService) BaseFilename(infoHash string) (string, error)

BaseFilename retrieves the base filename shown in the rTorrent UI for a specific download, by its info-hash.

func (*DownloadService) Complete

func (s *DownloadService) Complete() ([]string, error)

Complete retrieves a list of complete downloads from rTorrent.

func (*DownloadService) DownloadRate

func (s *DownloadService) DownloadRate(infoHash string) (int, error)

DownloadRate retrieves the current download rate in bytes for a specific download, by its info-hash.

func (*DownloadService) DownloadTotal

func (s *DownloadService) DownloadTotal(infoHash string) (int, error)

DownloadTotal retrieves the total bytes downloaded for a specific download, by its info-hash.

func (*DownloadService) Hashing

func (s *DownloadService) Hashing() ([]string, error)

Hashing retrieves a list of hashing downloads from rTorrent.

func (*DownloadService) Incomplete

func (s *DownloadService) Incomplete() ([]string, error)

Incomplete retrieves a list of incomplete downloads from rTorrent.

func (*DownloadService) Leeching

func (s *DownloadService) Leeching() ([]string, error)

Leeching retrieves a list of leeching downloads from rTorrent.

func (*DownloadService) Seeding

func (s *DownloadService) Seeding() ([]string, error)

Seeding retrieves a list of seeding downloads from rTorrent.

func (*DownloadService) Started

func (s *DownloadService) Started() ([]string, error)

Started retrieves a list of started downloads from rTorrent.

func (*DownloadService) Stopped

func (s *DownloadService) Stopped() ([]string, error)

Stopped retrieves a list of stopped downloads from rTorrent.

func (*DownloadService) UploadRate

func (s *DownloadService) UploadRate(infoHash string) (int, error)

UploadRate retrieves the current upload rate in bytes for a specific download, by its info-hash.

func (*DownloadService) UploadTotal

func (s *DownloadService) UploadTotal(infoHash string) (int, error)

UploadTotal retrieves the total bytes uploaded for a specific download, by its info-hash.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址