Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2025 Changes in this version + var NotLogin = wrapper.New("Please Login First") + func FailedToBuildRequest(err error) error + func FailedToDecodeResponse(err error) error + func RequestFailed(err error) error + type Client struct + Authed bool + HTTPClient *http.Client + func NewClient(baseURL string) *Client + func (c *Client) GetLogMain(normal, info, warning, critical bool, lastKnownID int) ([]LogMessage, error) + func (c *Client) GetLogPeers(lastKnownID int) ([]PeerLog, error) + func (client *Client) AddTags(h, tags string) error + func (client *Client) AddTorrentWithFile(torrentFiles []string, savePath, category string) error + func (client *Client) AddTorrentWithLink(torrentURLs []string, savePath, category string) error + func (client *Client) BanPeers(peers string) error + func (client *Client) BottomPrio(h string) error + func (client *Client) CreateTags(tags string) error + func (client *Client) DecreasePrio(h string) error + func (client *Client) DeleteTags(tags string) error + func (client *Client) DeleteTorrent(hashes string, deleteFiles bool) error + func (client *Client) DownloadLimit(h string) (map[string]int, error) + func (client *Client) EditCategory(category, savePath string) error + func (client *Client) FilePrio(h, id string, priority int) error + func (client *Client) Files(hash string, indexes string) ([]File, error) + func (client *Client) Get(endpoint string, opts map[string]string) (*http.Response, error) + func (client *Client) GetBuildInfo() (map[string]interface{}, error) + func (client *Client) GetCategories() (map[string]struct{ ... }, error) + func (client *Client) GetGlobalDownloadLimit() (int, error) + func (client *Client) GetGlobalUploadLimit() (int, error) + func (client *Client) GetPreferences() (Preferences, error) + func (client *Client) GetSpeedLimitsMode() (int, error) + func (client *Client) GetTags() ([]string, error) + func (client *Client) GetTransferInfo() (*TransferInfo, error) + func (client *Client) GetUploadLimit(limit int) error + func (client *Client) GetVersion() (string, error) + func (client *Client) GetWebAPIVersion() (string, error) + func (client *Client) IncreasePrio(hashes string) error + func (client *Client) List(opts map[string]string) ([]Torrent, error) + func (client *Client) Login(username string, password string) error + func (client *Client) Logout() error + func (client *Client) PieceStates(hash string) ([]int, error) + func (client *Client) Post(endpoint string, opts map[string]string) (*http.Response, error) + func (client *Client) PostFileWithForm(endpoint string, formData map[string]string, fileFieldName, filePath string) (*http.Response, error) + func (client *Client) PostFormData(endpoint string, formData map[string]string) (*http.Response, error) + func (client *Client) PostURL(endpoint string, opts map[string]string) (*http.Response, error) + func (client *Client) Properties(hash string) (TorrentGeneric, error) + func (client *Client) RemoveCategories(categories string) error + func (client *Client) RemoveTags(h, tags string) error + func (client *Client) RenameFile(hash, oldPath, newPath string) error + func (client *Client) RenameFolder(hash, oldPath, newPath string) error + func (client *Client) SearchDelete(id int) error + func (client *Client) SearchEnablePlugin(names string, enable bool) error + func (client *Client) SearchInstallPlugin(sources string) error + func (client *Client) SearchPlugins() ([]SearchPlugin, error) + func (client *Client) SearchResults(id, limit, offset int) (SearchResult, error) + func (client *Client) SearchStart(pattern, plugins, category string) (int, error) + func (client *Client) SearchStatus(id *int) ([]SearchJobStatus, error) + func (client *Client) SearchStop(id int) error + func (client *Client) SearchUninstallPlugin(names string) error + func (client *Client) SearchUpdatePlugins() error + func (client *Client) SetCategory(h, category string) error + func (client *Client) SetDownloadLimit(h string, limit int) error + func (client *Client) SetForceStart(hashes string, value bool) error + func (client *Client) SetGlobalDownloadLimit(limit int) error + func (client *Client) SetLocation(h string, location string) error + func (client *Client) SetPreferences(pref map[string]string) error + func (client *Client) SetShareLimits(h string, ratioLimit float64, seedingTimeLimit int, ...) error + func (client *Client) SetSuperSeeding(hashes string, value bool) error + func (client *Client) ToggleFirstLastPiecePrio(hashes string) error + func (client *Client) ToggleSpeedLimitsMode() error + func (client *Client) TopPrio(h string) error + func (client *Client) Trackers(hash string) ([]Tracker, error) + func (client *Client) UploadLimit(h string) (map[string]int, error) + func (client *Client) WebSeeds(hash string) ([]string, error) + type File struct + Availability float64 + Index int + IsSeed bool + Name string + PieceRange []int + Priority int + Progress float64 + Size int64 + type LogMessage struct + ID int + Message string + Timestamp int64 + Type int + type LogType int + const LogCritical + const LogInfo + const LogNormal + const LogWarning + type PeerLog struct + Blocked bool + ID int + IP string + Reason string + Timestamp int64 + type Preferences struct + AddTrackers string + AddTrackersEnabled bool + AltDlLimit int + AltUpLimit int + AlternativeWebuiEnabled bool + AlternativeWebuiPath string + AnnounceIP string + AnnounceToAllTiers bool + AnnounceToAllTrackers bool + AnonymousMode bool + AsyncIOThreads int + AutoDeleteMode int + AutoTMMEnabled bool + AutorunEnabled bool + AutorunProgram string + BannedIPs string + BittorrentProtocol int + ByPassAuthSubnetWhitelist string + ByPassAuthSubnetWhitelistEnabled bool + ByPassLocalAuth bool + CategoryChangedTMMEnabled bool + CheckingMemoryUse int + CreateSubfolderEnabled bool + CurrentInterfaceAddress string + CurrentNetworkInterface string + DHT bool + DLLimit int + DiskCache int + DiskCacheTTL int + DontCountSlowTorrents bool + DyndnsDomain string + DyndnsEnabled bool + DyndnsPassword string + DyndnsService int + DyndnsUsername string + EmbeddedTrackerPort int + EnableCoalesceReadWrite bool + EnableEmbeddedTracker bool + EnableMultiConnectionsFromSameIP bool + EnableOSCache bool + EnablePieceExtentAffinity bool + EnableUploadSuggestions bool + Encryption int + ExportDir string + ExportDirFin string + FilePoolSize int + IPFilterEnabled bool + IPFilterPath string + IPFilterTrackers bool + IncompleteFilesExt bool + LSD bool + LimitLANPeers bool + LimitTCPOverhead bool + LimitUTPRate bool + ListenPort int + Locale string + MailNotificationAuthEnabled bool + MailNotificationEmail string + MailNotificationEnabled bool + MailNotificationPassword string + MailNotificationSMTP string + MailNotificationSSLEnabled bool + MailNotificationSender string + MailNotificationUsername string + MaxActiveDownloads int + MaxActiveTorrents int + MaxActiveUploads int + MaxConnec int + MaxConnecPerTorrent int + MaxRatio float64 + MaxRatioAct int + MaxRatioEnabled bool + MaxSeedingTime int + MaxSeedingTimeEnabled bool + MaxUploads int + MaxUploadsPerTorrent int + OutgoingPortsMax int + OutgoingPortsMin int + PEX bool + PreallocateAll bool + ProxyAuthEnabled bool + ProxyIP string + ProxyPassword string + ProxyPeerConnections bool + ProxyPort int + ProxyTorrentsOnly bool + ProxyType int + ProxyUsername string + QueueingEnabled bool + RSSAutoDownloadingEnabled bool + RSSDownloadRepackProperEpisodes bool + RSSMaxArticlesPerFeed int + RSSProcessingEnabled bool + RSSRefreshInterval int + RSSSmartEpisodeFilters string + RandomPort bool + RecheckCompletedTorrents bool + ResolvePeerCountries bool + SavePath string + SavePathChangedTMMEnabled bool + SaveResumeDataInterval int + ScanDirs map[string]int + ScheduleFromHour int + ScheduleFromMin int + ScheduleToHour int + ScheduleToMin int + SchedulerDays int + SchedulerEnabled bool + SendBufferLowWatermark int + SendBufferWatermark int + SendBufferWatermarkFactor int + SlowTorrentDLRateThreshold int + SlowTorrentInactiveTimer int + SlowTorrentULRateThreshold int + SocketBacklogSize int + StartPausedEnabled bool + StopTrackerTimeout int + TempPath string + TempPathEnabled bool + TorrentChangedTMMEnabled bool + UpLimit int + UploadChokingAlgorithm int + type SearchJobStatus struct + ID int + Status string + Total int + type SearchPlugin struct + Enabled bool + FullName string + Name string + SupportedCategories []struct{ ... } + URL string + Version string + type SearchResult struct + Results []struct{ ... } + Status string + Total int + type Torrent struct + AddedOn int + AmountLeft int + AutoTMM bool + Availability float64 + Category string + Completed int + CompletionOn int + ContentPath string + DlLimit int + Dlspeed int + Downloaded int + DownloadedSession int + Eta int + FLPiecePrio bool + ForceStart bool + Hash string + IsPrivate bool + LastActivity int + MagnetURI string + MaxRatio float64 + MaxSeedingTime int + Name string + NumComplete int + NumIncomplete int + NumLeechs int + NumSeeds int + Priority int + Progress float64 + Ratio float64 + RatioLimit float64 + SavePath string + SeedingTime int + SeedingTimeLimit int + SeenComplete int + SeqDL bool + Size int + State string + SuperSeeding bool + Tags string + TimeActive int + TotalSize int + Tracker string + UpLimit int + Uploaded int + UploadedSession int + Upspeed int + type TorrentGeneric struct + AdditionDate int + Comment string + CompletionDate int + CreatedBy string + CreationDate int + DlLimit int + DlSpeed int + DlSpeedAvg int + Eta int + IsPrivate bool + LastSeen int + NbConnections int + NbConnectionsLimit int + Peers int + PeersTotal int + PieceSize int + PiecesHave int + PiecesNum int + Reannounce int + SavePath string + SeedingTime int + Seeds int + SeedsTotal int + ShareRatio float64 + TimeElapsed int + TotalDownloaded int + TotalDownloadedSession int + TotalSize int + TotalUploaded int + TotalUploadedSession int + TotalWasted int + UpLimit int + UpSpeed int + UpSpeedAvg int + type Tracker struct + Msg string + NumDownloaded int + NumLeeches int + NumPeers int + NumSeeds int + Status int + Tier int + URL string + type TransferInfo struct + ConnectionStatus string + DhtNodes int + DlInfoData int + DlInfoSpeed int + DlRateLimit int + UpInfoData int + UpInfoSpeed int + UpRateLimit int