transmission

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: AGPL-3.0 Imports: 13 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
	// contains filtered or unexported fields
}

func (*Client) AddTagsToAllTorrents

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

func (*Client) AddTagsToTorrents

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

func (*Client) AddTorrent

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

func (*Client) AddTorrentTrackers

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

func (*Client) Cached added in v0.1.6

func (trclient *Client) Cached() bool

func (*Client) Close

func (trclient *Client) Close()

func (*Client) CreateTags

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

func (*Client) DeleteCategories added in v0.1.9

func (trclient *Client) DeleteCategories(categories []string) error

func (*Client) DeleteTags

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

func (*Client) DeleteTorrents

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

suboptimal due to limit of transmissionrpc library

func (*Client) EditTorrentTracker

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

func (*Client) ExportTorrentFile added in v0.1.9

func (trclient *Client) ExportTorrentFile(infoHash string) ([]byte, error)

func (*Client) GetCategories

func (trclient *Client) GetCategories() ([]client.TorrentCategory, error)

func (*Client) GetClientConfig

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

func (*Client) GetConfig

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

func (*Client) GetName

func (trclient *Client) GetName() string

func (*Client) GetStatus

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

func (*Client) GetTags

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

func (*Client) GetTorrent

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

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 (trclient *Client) GetTorrents(stateFilter string, category string, showAll bool) ([]client.Torrent, error)

func (*Client) MakeCategory added in v0.1.5

func (trclient *Client) MakeCategory(category string, savePath string) error

func (*Client) ModifyTorrent

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

func (*Client) PauseAllTorrents

func (trclient *Client) PauseAllTorrents() error

func (*Client) PauseTorrents

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

func (*Client) PurgeCache

func (trclient *Client) PurgeCache()

func (*Client) ReannounceAllTorrents

func (trclient *Client) ReannounceAllTorrents() error

func (*Client) ReannounceTorrents

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

func (*Client) RecheckAllTorrents

func (trclient *Client) RecheckAllTorrents() error

func (*Client) RecheckTorrents

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

func (*Client) RemoveTagsFromAllTorrents

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

func (*Client) RemoveTagsFromTorrents

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

func (*Client) RemoveTorrentTrackers

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

func (*Client) ResumeAllTorrents

func (trclient *Client) ResumeAllTorrents() error

func (*Client) ResumeTorrents

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

func (*Client) SetAllTorrentsCatetory

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

func (*Client) SetAllTorrentsSavePath

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

func (*Client) SetConfig

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

func (*Client) SetFilePriority added in v0.1.6

func (trclient *Client) SetFilePriority(infoHash string, fileIndexes []int64, priority int64) error

func (*Client) SetTorrentsCatetory

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

func (*Client) SetTorrentsSavePath

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

func (*Client) TorrentRootPathExists

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

Jump to

Keyboard shortcuts

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