Documentation
¶
Index ¶
- func NewClient(name string, clientConfig *config.ClientConfigStruct, ...) (client.Client, error)
- type Client
- func (qbclient *Client) AddTorrent(torrentContent []byte, option *client.TorrentOption, meta map[string](int64)) error
- 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) GetCategories() ([]string, 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) GetTorrents(stateFilter string, category string, showAll bool) ([]client.Torrent, 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) ResumeAllTorrents() error
- func (qbclient *Client) ResumeTorrents(infoHashes []string) error
- func (qbclient *Client) SetAllTorrentsCatetory(category string) error
- func (qbclient *Client) SetConfig(variable string, value string) error
- func (qbclient *Client) SetTorrentsCatetory(infoHashes []string, category 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) AddTorrent ¶
func (*Client) CreateTags ¶
func (*Client) DeleteTags ¶
func (*Client) DeleteTorrents ¶
func (*Client) GetCategories ¶
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) GetTorrents ¶
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) ResumeAllTorrents ¶
func (*Client) ResumeTorrents ¶
func (*Client) SetAllTorrentsCatetory ¶
func (*Client) SetTorrentsCatetory ¶
func (*Client) TorrentRootPathExists ¶
Click to show internal directories.
Click to hide internal directories.