qbittorrent

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 9 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
}

Client is a qBittorrent client.

func NewClient

func NewClient(url string) *Client

func (*Client) AddTorrentFromBuffer

func (c *Client) AddTorrentFromBuffer(file *bytes.Buffer, fileName string, options map[string]string) error

func (*Client) AddTorrentFromURL

func (c *Client) AddTorrentFromURL(urls string, options map[string]string) error

func (*Client) GetTorrents

func (c *Client) GetTorrents() ([]Torrent, error)

func (*Client) Login added in v0.3.0

func (c *Client) Login(username, password string) error

type Torrent

type Torrent struct {
	Name     string `json:"name"`
	Size     uint64 `json:"size"`
	Category string `json:"category"`
	Hash     string `json:"hash"`
	Tracker  string `json:"tracker"`
}

Torrent is a torrent.

Jump to

Keyboard shortcuts

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