Documentation
¶
Index ¶
- func NewClient(name string, clientConfig *config.ClientConfigStruct, ...) (client.Client, error)
- type Client
- func (qbclient *Client) AddTagsToAllTorrents(tags []string) error
- func (qbclient *Client) AddTagsToTorrents(infoHashes []string, tags []string) error
- func (qbclient *Client) AddTorrent(torrentContent []byte, option *client.TorrentOption, meta map[string]int64) error
- func (qbclient *Client) AddTorrentTrackers(infoHash string, trackers []string, oldTracker string) error
- func (qbclient *Client) Cached() bool
- func (qbclient *Client) Close()
- func (qbclient *Client) CreateTags(tags ...string) error
- func (qbclient *Client) DeleteTags(tags ...string) error
- func (qbclient *Client) DeleteTorrents(infoHashes []string, deleteFiles bool) error
- func (qbclient *Client) EditTorrentTracker(infoHash string, oldTracker string, newTracker string, replaceHost bool) error
- func (qbclient *Client) GetCategories() ([]client.TorrentCategory, error)
- func (qbclient *Client) GetClientConfig() *config.ClientConfigStruct
- func (qbclient *Client) GetConfig(variable string) (string, error)
- func (qbclient *Client) GetName() string
- func (qbclient *Client) GetStatus() (*client.Status, error)
- func (qbclient *Client) GetTags() ([]string, error)
- func (qbclient *Client) GetTorrent(infoHash string) (*client.Torrent, error)
- func (qbclient *Client) GetTorrentContents(infoHash string) ([]client.TorrentContentFile, error)
- func (qbclient *Client) GetTorrentTrackers(infoHash string) (client.TorrentTrackers, error)
- func (qbclient *Client) GetTorrents(stateFilter string, category string, showAll bool) ([]client.Torrent, error)
- func (qbclient *Client) MakeCategory(category string, savePath string) error
- func (qbclient *Client) ModifyTorrent(infoHash string, option *client.TorrentOption, meta map[string]int64) error
- func (qbclient *Client) PauseAllTorrents() error
- func (qbclient *Client) PauseTorrents(infoHashes []string) error
- func (qbclient *Client) PurgeCache()
- func (qbclient *Client) ReannounceAllTorrents() error
- func (qbclient *Client) ReannounceTorrents(infoHashes []string) error
- func (qbclient *Client) RecheckAllTorrents() error
- func (qbclient *Client) RecheckTorrents(infoHashes []string) error
- func (qbclient *Client) RemoveCategories(categories []string) error
- func (qbclient *Client) RemoveTagsFromAllTorrents(tags []string) error
- func (qbclient *Client) RemoveTagsFromTorrents(infoHashes []string, tags []string) error
- func (qbclient *Client) RemoveTorrentTrackers(infoHash string, trackers []string) error
- func (qbclient *Client) ResumeAllTorrents() error
- func (qbclient *Client) ResumeTorrents(infoHashes []string) error
- func (qbclient *Client) SetAllTorrentsCatetory(category string) error
- func (qbclient *Client) SetAllTorrentsSavePath(savePath string) error
- func (qbclient *Client) SetConfig(variable string, value string) error
- func (qbclient *Client) SetFilePriority(infoHash string, fileIndexes []int64, priority int64) error
- func (qbclient *Client) SetTorrentsCatetory(infoHashes []string, category string) error
- func (qbclient *Client) SetTorrentsSavePath(infoHashes []string, savePath string) error
- func (qbclient *Client) TorrentRootPathExists(rootFolder string) bool
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 // contains filtered or unexported fields }
func (*Client) AddTagsToAllTorrents ¶ added in v0.1.1
func (*Client) AddTagsToTorrents ¶ added in v0.1.1
func (*Client) AddTorrent ¶
func (*Client) AddTorrentTrackers ¶ added in v0.1.2
func (qbclient *Client) AddTorrentTrackers(infoHash string, trackers []string, oldTracker string) error
trackers - new trackers full URLs; oldTracker - existing tracker host or URL
func (*Client) CreateTags ¶
func (*Client) DeleteTags ¶
func (*Client) DeleteTorrents ¶
func (*Client) EditTorrentTracker ¶ added in v0.1.1
func (*Client) GetCategories ¶
func (qbclient *Client) GetCategories() ([]client.TorrentCategory, error)
func (*Client) GetClientConfig ¶
func (qbclient *Client) GetClientConfig() *config.ClientConfigStruct
func (*Client) GetTorrent ¶
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.TorrentTrackers, error)
func (*Client) GetTorrents ¶
func (*Client) MakeCategory ¶ added in v0.1.5
func (*Client) ModifyTorrent ¶
func (*Client) PauseAllTorrents ¶
func (*Client) PauseTorrents ¶
func (*Client) PurgeCache ¶
func (qbclient *Client) PurgeCache()
func (*Client) ReannounceAllTorrents ¶
func (*Client) ReannounceTorrents ¶
func (*Client) RecheckAllTorrents ¶
func (*Client) RecheckTorrents ¶
func (*Client) RemoveCategories ¶ added in v0.1.5
func (*Client) RemoveTagsFromAllTorrents ¶ added in v0.1.1
func (*Client) RemoveTagsFromTorrents ¶ added in v0.1.1
func (*Client) RemoveTorrentTrackers ¶ added in v0.1.2
func (*Client) ResumeAllTorrents ¶
func (*Client) ResumeTorrents ¶
func (*Client) SetAllTorrentsCatetory ¶
func (*Client) SetAllTorrentsSavePath ¶ added in v0.1.1
func (*Client) SetFilePriority ¶ added in v0.1.6
func (*Client) SetTorrentsCatetory ¶
func (*Client) SetTorrentsSavePath ¶ added in v0.1.1
func (*Client) TorrentRootPathExists ¶
Click to show internal directories.
Click to hide internal directories.