qbittorrent_torrent

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 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 {
	BaseUrl string
	Client  *http.Client
	Logger  *zerolog.Logger
}

func (Client) AddCategory

func (c Client) AddCategory(category string, savePath string) error

func (Client) AddFiles

func (c Client) AddFiles(files map[string][]byte, options *qbittorrent_model.AddTorrentsOptions) error

func (Client) AddTrackers

func (c Client) AddTrackers(hash string, trackerURLs []string) error

func (Client) AddURLs

func (c Client) AddURLs(urls []string, options *qbittorrent_model.AddTorrentsOptions) error

func (Client) DecreasePriority

func (c Client) DecreasePriority(hashes []string) error

func (Client) DeleteTorrents

func (c Client) DeleteTorrents(hashes []string, deleteFiles bool) error

func (Client) EditCategory

func (c Client) EditCategory(category string, savePath string) error

func (Client) EditTrackers

func (c Client) EditTrackers(hash, old, new string) error

func (Client) GetCategories

func (c Client) GetCategories() (map[string]*qbittorrent_model.Category, error)

func (Client) GetContents

func (c Client) GetContents(hash string) ([]*qbittorrent_model.TorrentContent, error)

func (Client) GetDownloadLimits

func (c Client) GetDownloadLimits(hashes []string) (map[string]int, error)

func (Client) GetList

func (c Client) GetList(options *qbittorrent_model.GetTorrentListOptions) ([]*qbittorrent_model.Torrent, error)

func (Client) GetPieceHashes

func (c Client) GetPieceHashes(hash string) ([]string, error)

func (Client) GetPieceStates

func (c Client) GetPieceStates(hash string) ([]qbittorrent_model.TorrentPieceState, error)

func (Client) GetProperties

func (c Client) GetProperties(hash string) (*qbittorrent_model.TorrentProperties, error)

func (Client) GetTrackers

func (c Client) GetTrackers(hash string) ([]*qbittorrent_model.TorrentTracker, error)

func (Client) GetUploadLimits

func (c Client) GetUploadLimits(hashes []string) (map[string]int, error)

func (Client) GetWebSeeds

func (c Client) GetWebSeeds(hash string) ([]string, error)

func (Client) IncreasePriority

func (c Client) IncreasePriority(hashes []string) error

func (Client) ReannounceTorrents

func (c Client) ReannounceTorrents(hashes []string) error

func (Client) RecheckTorrents

func (c Client) RecheckTorrents(hashes []string) error

func (Client) RemoveCategory

func (c Client) RemoveCategory(categories []string) error

func (Client) RemoveTrackers

func (c Client) RemoveTrackers(hash string, trackerURLs []string) error

func (Client) ResumeTorrents

func (c Client) ResumeTorrents(hashes []string) error

func (Client) SetAutomaticManagement

func (c Client) SetAutomaticManagement(hashes []string, enable bool) error

func (Client) SetCategories

func (c Client) SetCategories(hashes []string, category string) error

func (Client) SetDownloadLimits

func (c Client) SetDownloadLimits(hashes []string, limit int) error

func (Client) SetFilePriorities

func (c Client) SetFilePriorities(hash string, ids []string, priority qbittorrent_model.TorrentPriority) error

func (Client) SetForceStart

func (c Client) SetForceStart(hashes []string, enable bool) error

func (Client) SetLocations

func (c Client) SetLocations(hashes []string, location string) error

func (Client) SetMaximumPriority

func (c Client) SetMaximumPriority(hashes []string) error

func (Client) SetMinimumPriority

func (c Client) SetMinimumPriority(hashes []string) error

func (Client) SetName

func (c Client) SetName(hash string, name string) error

func (Client) SetShareLimits

func (c Client) SetShareLimits(hashes []string, ratioLimit float64, seedingTimeLimit int) error

func (Client) SetSuperSeeding

func (c Client) SetSuperSeeding(hashes []string, enable bool) error

func (Client) SetUploadLimits

func (c Client) SetUploadLimits(hashes []string, limit int) error

func (Client) StopTorrents

func (c Client) StopTorrents(hashes []string) error

func (Client) ToggleFirstLastPiecePriority

func (c Client) ToggleFirstLastPiecePriority(hashes []string) error

func (Client) ToggleSequentialDownload

func (c Client) ToggleSequentialDownload(hashes []string) error

Jump to

Keyboard shortcuts

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