qbittorrent

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(name string, clientConfig *config.ClientConfigStruct, config *config.ConfigStruct) (client.Client, error)

Types

type Client

type Client struct {
	Name         string
	ClientConfig *config.ClientConfigStruct
	Config       *config.ConfigStruct
	HttpClient   *http.Client

	Logined bool
	NoLogin bool
	// contains filtered or unexported fields
}

func (*Client) AddTagsToAllTorrents added in v0.1.1

func (qbclient *Client) AddTagsToAllTorrents(tags []string) error

func (*Client) AddTagsToTorrents added in v0.1.1

func (qbclient *Client) AddTagsToTorrents(infoHashes []string, tags []string) error

func (*Client) AddTorrent

func (qbclient *Client) AddTorrent(torrentContent []byte, option *client.TorrentOption, meta map[string](int64)) error

func (*Client) AddTorrentTrackers added in v0.1.2

func (qbclient *Client) AddTorrentTrackers(infoHash string, trackers []string) error

func (*Client) Close added in v0.1.2

func (qbclient *Client) Close()

func (*Client) CreateTags

func (qbclient *Client) CreateTags(tags ...string) error

func (*Client) DeleteTags

func (qbclient *Client) DeleteTags(tags ...string) error

func (*Client) DeleteTorrents

func (qbclient *Client) DeleteTorrents(infoHashes []string, deleteFiles bool) error

func (*Client) EditTorrentTracker added in v0.1.1

func (qbclient *Client) EditTorrentTracker(infoHash string, oldTracker string, newTracker string, replaceHost bool) error

func (*Client) GetCategories

func (qbclient *Client) GetCategories() ([]string, error)

func (*Client) GetClientConfig

func (qbclient *Client) GetClientConfig() *config.ClientConfigStruct

func (*Client) GetConfig

func (qbclient *Client) GetConfig(variable string) (string, error)

func (*Client) GetName

func (qbclient *Client) GetName() string

func (*Client) GetStatus

func (qbclient *Client) GetStatus() (*client.Status, error)

func (*Client) GetTags

func (qbclient *Client) GetTags() ([]string, error)

func (*Client) GetTorrent

func (qbclient *Client) GetTorrent(infoHash string) (*client.Torrent, error)

func (*Client) GetTorrentContents

func (qbclient *Client) GetTorrentContents(infoHash string) ([]client.TorrentContentFile, error)

func (*Client) GetTorrentTrackers added in v0.1.1

func (qbclient *Client) GetTorrentTrackers(infoHash string) ([]client.TorrentTracker, error)

func (*Client) GetTorrents

func (qbclient *Client) GetTorrents(stateFilter string, category string, showAll bool) ([]client.Torrent, error)

func (*Client) ModifyTorrent

func (qbclient *Client) ModifyTorrent(infoHash string,
	option *client.TorrentOption, meta map[string](int64)) error

func (*Client) PauseAllTorrents

func (qbclient *Client) PauseAllTorrents() error

func (*Client) PauseTorrents

func (qbclient *Client) PauseTorrents(infoHashes []string) error

func (*Client) PurgeCache

func (qbclient *Client) PurgeCache()

func (*Client) ReannounceAllTorrents

func (qbclient *Client) ReannounceAllTorrents() error

func (*Client) ReannounceTorrents

func (qbclient *Client) ReannounceTorrents(infoHashes []string) error

func (*Client) RecheckAllTorrents

func (qbclient *Client) RecheckAllTorrents() error

func (*Client) RecheckTorrents

func (qbclient *Client) RecheckTorrents(infoHashes []string) error

func (*Client) RemoveTagsFromAllTorrents added in v0.1.1

func (qbclient *Client) RemoveTagsFromAllTorrents(tags []string) error

func (*Client) RemoveTagsFromTorrents added in v0.1.1

func (qbclient *Client) RemoveTagsFromTorrents(infoHashes []string, tags []string) error

func (*Client) RemoveTorrentTrackers added in v0.1.2

func (qbclient *Client) RemoveTorrentTrackers(infoHash string, trackers []string) error

func (*Client) ResumeAllTorrents

func (qbclient *Client) ResumeAllTorrents() error

func (*Client) ResumeTorrents

func (qbclient *Client) ResumeTorrents(infoHashes []string) error

func (*Client) SetAllTorrentsCatetory

func (qbclient *Client) SetAllTorrentsCatetory(category string) error

func (*Client) SetAllTorrentsSavePath added in v0.1.1

func (qbclient *Client) SetAllTorrentsSavePath(savePath string) error

func (*Client) SetConfig

func (qbclient *Client) SetConfig(variable string, value string) error

func (*Client) SetTorrentsCatetory

func (qbclient *Client) SetTorrentsCatetory(infoHashes []string, category string) error

func (*Client) SetTorrentsSavePath added in v0.1.1

func (qbclient *Client) SetTorrentsSavePath(infoHashes []string, savePath string) error

func (*Client) TorrentRootPathExists

func (qbclient *Client) TorrentRootPathExists(rootFolder string) bool

Jump to

Keyboard shortcuts

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