transmission

package
v0.0.0-...-f8e935a Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, address, username, password string) (*Client, error)

func NewTransmissionClient

func NewTransmissionClient(ctx context.Context) (*Client, error)

func (*Client) AddTorrent

func (c *Client) AddTorrent(ctx context.Context, torrentURL string) (*transmissionrpc.Torrent, error)

func (*Client) AddTorrentFromFile

func (c *Client) AddTorrentFromFile(ctx context.Context, torrentPath string) (*transmissionrpc.Torrent, error)

func (*Client) GetCompletedDownloads

func (c *Client) GetCompletedDownloads(ctx context.Context) ([]*transmissionrpc.Torrent, error)

func (*Client) GetSessionStats

func (c *Client) GetSessionStats(ctx context.Context) (*transmissionrpc.SessionStats, error)

func (*Client) GetTorrentInfo

func (c *Client) GetTorrentInfo(ctx context.Context, id int64) (*transmissionrpc.Torrent, error)

func (*Client) RemoveTorrents

func (c *Client) RemoveTorrents(ctx context.Context, id []int64) error

Jump to

Keyboard shortcuts

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