transmission

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

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TorrentDone    = 1
	TorrentRunning = 2
	TorrentMissing = 3
	TorrentError   = 4
)

Variables

Functions

This section is empty.

Types

type Host

type Host string

type Password

type Password string

type Torrent

type Torrent struct {
	ID   int64
	Name string
}

type TorrentStatus

type TorrentStatus int

type TransmissionClient

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

func NewClient

func NewClient(
	host Host,
	user User,
	password Password,
) (*TransmissionClient, error)

func (*TransmissionClient) DownloadTorrent

func (s *TransmissionClient) DownloadTorrent(filepath string) (*Torrent, error)

func (*TransmissionClient) ListTorrents

func (s *TransmissionClient) ListTorrents() ([]transmissionrpc.Torrent, error)

func (*TransmissionClient) TestConnection

func (s *TransmissionClient) TestConnection() error

func (*TransmissionClient) TorrentIsDone

func (s *TransmissionClient) TorrentIsDone(torrentId int64) (TorrentStatus, error)

type User

type User string

Jump to

Keyboard shortcuts

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