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