clients

package
Version: v0.0.0-...-2413221 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadTransmissionURL = errors.New("must specify transmission-daemon URL in options as http://username:password@hostname")

Functions

func Each

func Each(callback func(id string, client Client) error) error

func GetIDs

func GetIDs() []string

Types

type Client

type Client interface {
	Name() string
	Download(ctx context.Context, resource string, t *torrent.Torrent, options string) error
}

func Get

func Get(id string) Client

type DelugeClient

type DelugeClient struct {
}

func (*DelugeClient) Download

func (c *DelugeClient) Download(ctx context.Context, resource string, t *torrent.Torrent, options string) error

func (*DelugeClient) Name

func (c *DelugeClient) Name() string

type TransmissionDaemonClient

type TransmissionDaemonClient struct {
}

func (*TransmissionDaemonClient) Download

func (c *TransmissionDaemonClient) Download(ctx context.Context, resource string, t *torrent.Torrent, options string) error

func (*TransmissionDaemonClient) Name

func (c *TransmissionDaemonClient) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL