Versions in this module Expand all Collapse all v1 v1.9.0 Feb 6, 2025 v1.8.0 Jan 4, 2025 v1.7.1 Dec 15, 2024 v1.7.0 Dec 10, 2024 Changes in this version + type Deluge struct + Host *string + Login *string + Password *string + Port *uint + V2 bool + func (c *Deluge) AddFreeSpace(bytes int64) + func (c *Deluge) Connect() error + func (c *Deluge) GetCurrentFreeSpace(path string) (int64, error) + func (c *Deluge) GetFreeSpace() float64 + func (c *Deluge) GetTorrents() (map[string]config.Torrent, error) + func (c *Deluge) LabelPathMap() map[string]string + func (c *Deluge) LoadLabelPathMap() error + func (c *Deluge) RemoveTorrent(hash string, deleteData bool) (bool, error) + func (c *Deluge) SetTorrentLabel(hash string, label string, hardlink bool) error + func (c *Deluge) ShouldIgnore(t *config.Torrent) (bool, error) + func (c *Deluge) ShouldRelabel(t *config.Torrent) (string, bool, error) + func (c *Deluge) ShouldRemove(t *config.Torrent) (bool, error) + func (c *Deluge) Type() string + type Interface interface + AddFreeSpace func(int64) + Connect func() error + GetCurrentFreeSpace func(string) (int64, error) + GetFreeSpace func() float64 + GetTorrents func() (map[string]config.Torrent, error) + LabelPathMap func() map[string]string + LoadLabelPathMap func() error + RemoveTorrent func(string, bool) (bool, error) + SetTorrentLabel func(hash string, label string, hardlink bool) error + ShouldIgnore func(*config.Torrent) (bool, error) + ShouldRelabel func(*config.Torrent) (string, bool, error) + ShouldRemove func(*config.Torrent) (bool, error) + Type func() string + func NewClient(clientType string, clientName string, exp *expression.Expressions) (Interface, error) + func NewDeluge(name string, exp *expression.Expressions) (Interface, error) + type QBittorrent struct + EnableAutoTmmAfterRelabel bool + Password string + Url *string + User string + func (c *QBittorrent) AddFreeSpace(bytes int64) + func (c *QBittorrent) AddTags(hash string, tags []string) error + func (c *QBittorrent) Connect() error + func (c *QBittorrent) CreateTags(tags []string) error + func (c *QBittorrent) DeleteTags(tags []string) error + func (c *QBittorrent) GetCurrentFreeSpace(path string) (int64, error) + func (c *QBittorrent) GetFreeSpace() float64 + func (c *QBittorrent) GetTorrents() (map[string]config.Torrent, error) + func (c *QBittorrent) LabelPathMap() map[string]string + func (c *QBittorrent) LoadLabelPathMap() error + func (c *QBittorrent) RemoveTags(hash string, tags []string) error + func (c *QBittorrent) RemoveTorrent(hash string, deleteData bool) (bool, error) + func (c *QBittorrent) SetTorrentLabel(hash string, label string, hardlink bool) error + func (c *QBittorrent) ShouldIgnore(t *config.Torrent) (bool, error) + func (c *QBittorrent) ShouldRelabel(t *config.Torrent) (string, bool, error) + func (c *QBittorrent) ShouldRemove(t *config.Torrent) (bool, error) + func (c *QBittorrent) ShouldRetag(t *config.Torrent) (RetagInfo, bool, error) + func (c *QBittorrent) Type() string + type RetagInfo struct + Add []string + Remove []string + type TagInterface interface + AddTags func(string, []string) error + CreateTags func([]string) error + DeleteTags func([]string) error + RemoveTags func(string, []string) error + ShouldRetag func(*config.Torrent) (RetagInfo, bool, error) + func NewQBittorrent(name string, exp *expression.Expressions) (TagInterface, error)