rtorrent

package
v0.0.0-...-1e96bd0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*base.BaseClient
	// contains filtered or unexported fields
}

Provider implements the DownloadProvider interface for rTorrent.

func NewProvider

func NewProvider(
	host string,
	port int,
	username, password string,
	useSSL bool,
	urlBase string,
) (*Provider, error)

NewProvider creates a new rTorrent download provider.

func (*Provider) AddTorrent

AddTorrent adds a torrent to rTorrent.

func (*Provider) GetHTTPClient

func (p *Provider) GetHTTPClient() *http.Client

GetHTTPClient returns an HTTP client for this provider.

func (*Provider) GetProviderName

func (p *Provider) GetProviderName() string

GetProviderName returns the provider name.

func (*Provider) GetProviderType

func (p *Provider) GetProviderType() apiexternal_v2.DownloadProviderType

GetProviderType returns the download provider type.

func (*Provider) GetStatus

GetStatus retrieves the download client status.

func (*Provider) GetTorrentInfo

func (p *Provider) GetTorrentInfo(
	ctx context.Context,
	hash string,
) (*apiexternal_v2.TorrentInfo, error)

GetTorrentInfo retrieves information about a specific torrent.

func (*Provider) ListTorrents

func (p *Provider) ListTorrents(
	ctx context.Context,
	filter string,
) (*apiexternal_v2.TorrentListResponse, error)

ListTorrents lists all torrents in rTorrent.

func (*Provider) PauseTorrent

func (p *Provider) PauseTorrent(ctx context.Context, hash string) error

PauseTorrent pauses a torrent.

func (*Provider) RemoveTorrent

func (p *Provider) RemoveTorrent(ctx context.Context, hash string, deleteFiles bool) error

RemoveTorrent removes a torrent from rTorrent.

func (*Provider) ResumeTorrent

func (p *Provider) ResumeTorrent(ctx context.Context, hash string) error

ResumeTorrent resumes a torrent.

func (*Provider) TestConnection

func (p *Provider) TestConnection(ctx context.Context) error

TestConnection tests the connection to rTorrent.

Jump to

Keyboard shortcuts

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