Versions in this module Expand all Collapse all v1 v1.1.4 Jun 13, 2023 v1.1.3 Jun 13, 2023 Changes in this version type GetTorrentPeerDataRequest + Rid int + type TorrentPeer struct + Client string + Connection string + Country string + CountryCode string + DownloadSpeed uint64 + Downloaded uint64 + Files string + Flags string + FlagsDesc string + IP string + Port uint16 + Progress float64 + Relevance float64 + UploadSpeed uint64 + Uploaded uint64 v1.1.1 Jan 10, 2023 Changes in this version type TorrentAddRequest + FilesReader []TorrentAddRequestFileReader + type TorrentAddRequestFileReader struct + Name string + Reader io.Reader v1.1.0 Jan 6, 2023 Changes in this version + const TorrentStateAllocating + const TorrentStateCheckingDL + const TorrentStateCheckingResumeData + const TorrentStateCheckingUP + const TorrentStateDownloading + const TorrentStateError + const TorrentStateForceDL + const TorrentStateForcedUP + const TorrentStateMetaDL + const TorrentStateMissingFiles + const TorrentStateMoving + const TorrentStatePausedDL + const TorrentStatePausedUP + const TorrentStateQueuedDL + const TorrentStateQueuedUP + const TorrentStateStalledDL + const TorrentStateStalledUP + const TorrentStateUnknown + const TorrentStateUploading + var ErrNoImplementation = errors.New("No implementation") + type Category struct + Name string + SavePath string + type CategoryMap map[string]Category + type Client struct + Authorize string + BaseURL string + Cookies http.CookieJar + Host string + func New(baseURL string) (*Client, error) + func NewDebug(baseURL string, logger *log.Logger, debug bool) (*Client, error) + func NewWithLogger(baseURL string, logger *log.Logger) (*Client, error) + func (c *Client) GetAPIVersion() (string, error) + func (c *Client) GetBuildInfo() (e GetBuildInfoResponse, err error) + func (c *Client) GetDefaultSavePath() (string, error) + func (c *Client) GetLog(req *GetLogRequest) (*GetLogResponse, error) + func (c *Client) GetPreferences() (p Preferences, err error) + func (c *Client) GetTorrentContents(req *GetTorrentContentsRequest) (*GetTorrentContentsResponse, error) + func (c *Client) GetTorrentGenericProperties(req *GetTorrentGenericPropertiesRequest) (*TorrentProperties, error) + func (c *Client) GetTorrentList(req *GetTorrentListRequest) (*GetTorrentListResponse, error) + func (c *Client) GetTorrentPeerData(req *GetTorrentPeerDataRequest) (res *GetTorrentPeerDataResponse, err error) + func (c *Client) GetTorrentPiecesHash() + func (c *Client) GetTorrentPiecesStates() + func (c *Client) GetTorrentTrackers(req *GetTorrentTrackersRequest) (*GetTorrentTrackersResponse, error) + func (c *Client) GetTorrentWebSeeds() + func (c *Client) GetVersion() (string, error) + func (c *Client) Login(username, password string) error + func (c *Client) Logout() error + func (c *Client) SetPreferences(p *Preferences) error + func (c *Client) Shutdown() error + func (c *Client) TorrentAdd(req *TorrentAddRequest) error + func (c *Client) TorrentAddTags(req *TorrentAddTagsRequest) error + func (c *Client) TorrentAddTracker(req *TorrentAddTrackerRequest) error + func (c *Client) TorrentCreateCategory(category *Category) error + func (c *Client) TorrentDelete(req *TorrentDeleteRequest) error + func (c *Client) TorrentEditCategory(category *Category) error + func (c *Client) TorrentEditTracker(req *TorrentEditTrackerRequest) error + func (c *Client) TorrentGetAllCategory() (CategoryMap, error) + func (c *Client) TorrentPause(req *TorrentPauseRequest) error + func (c *Client) TorrentReannounce() + func (c *Client) TorrentRecheck(req *TorrentRecheckRequest) error + func (c *Client) TorrentRemoveCategory(categories []string) error + func (c *Client) TorrentRemoveTags(req *TorrentRemoveTagsRequest) error + func (c *Client) TorrentRemoveTracker(req *TorrentRemoveTrackerRequest) error + func (c *Client) TorrentResume(req *TorrentResumeRequest) error + func (c *Client) TorrentSetCategory(req *TorrentSetCategoryRequest) error + type GetBuildInfoResponse struct + Bitness string + Boost string + LibTorrent string + OpenSSL string + Qt string + type GetLogRequest struct + Critical bool + Info bool + LastKnownID int64 + Normal bool + Warning bool + type GetLogResponse struct + Data []GetLogResponseData + type GetLogResponseData struct + ID int + Message string + Timestamp int + Type int + type GetTorrentContentsRequest struct + Hash string + type GetTorrentContentsResponse struct + Availability float32 + IsSeed bool + Name string + PieceRange []int64 + Priority int64 + Progress float32 + Size int64 + type GetTorrentGenericPropertiesRequest struct + Hash string + type GetTorrentListRequest struct + Category string + EmptyCategory bool + Filter string + Hashes []string + Limit int + Offset int + Reverse string + Sort string + type GetTorrentListResponse struct + Torrents []Torrent + type GetTorrentPeerDataRequest struct + Hash string + type GetTorrentPeerDataResponse struct + Data TorrentPeerData + type GetTorrentTrackersRequest struct + Hash string + type GetTorrentTrackersResponse struct + TorrentTracker []TorrentTracker + type Preferences struct + AltDlLimit int + AltUpLimit int + AnonymousMode bool + AutorunEnable bool + AutorunProgram string + BypassAuthSubnetWhiteList string + BypassAuthSubnetWhitelistEnabled bool + BypassLocalAuth bool + DHT bool + DHTPort int + DHTSameAsBT bool + DlLimit int + DontCountSlowTorrents bool + DyndnsDomain string + DyndnsEnabled bool + DyndnsPassword string + DyndnsService int + DyndnsUsername string + EnableUTP bool + Encryption int + ExportDir string + ExportDirEnabled bool + ForceProxy bool + IPFilterEnabled bool + IPFilterPath string + IPFilterTrackers bool + IncompleteFileExt bool + LSD bool + LimitTCPOverhead bool + LimitUTPRate bool + ListenPort int + Locale string + MailNotificationAuthEnabled bool + MailNotificationEmail string + MailNotificationEnabled bool + MailNotificationPassword string + MailNotificationSMTP string + MailNotificationSSLEnabled bool + MailNotificationUsername string + MaxActiveDownloads int + MaxActiveTorrents int + MaxActiveUploads int + MaxConnec int + MaxConnecPerTorrent int + MaxRatio float32 + MaxRatioAct int + MaxRatioEnabled bool + MaxUploadPerTorrent int + MaxUploads int + PEX bool + PreallocateAll bool + ProxyAuthEnabled bool + ProxyIP string + ProxyPassword string + ProxyPeerConnections bool + ProxyPort int + ProxyType int + ProxyUsername string + QueuingEnabled bool + RandomPort bool + SSLCert string + SSLKey string + SavePath string + ScanDirs map[string]string + ScheduleFromHour int + ScheduleFromMin int + ScheduleToHour int + ScheduleToMin int + SchedulerDays int + SchedulerEnabled bool + TempPath string + TempPathEnabled bool + UPNP bool + UpLimit int + UseHTTPS bool + WebUIPassword string + WebUIPort int + WebUIUPNP bool + WebUIUsername string + type Torrent struct + AddedOn int64 + AmountLeft int64 + AutoTmm bool + Availability float64 + Category string + Completed int64 + CompletionOn int64 + ContentPath string + DlLimit int64 + Dlspeed int64 + Downloaded int64 + DownloadedSession int64 + ETA int64 + FLPiecePrio bool + ForceStart bool + Hash string + LastActivity int64 + MagnetURI string + MaxRatio float64 + MaxSeedingTime int64 + Name string + NumComplete int64 + NumIncomplete int64 + NumLeechs int64 + NumSeeds int64 + Priority int64 + Progress float64 + Ratio float64 + RatioLimit float64 + SavePath string + SeedingTimeLimit int64 + SeenComplete int64 + SeqDl bool + Size int64 + State string + SuperSeeding bool + Tags string + TimeActive int64 + TotalSize int64 + Tracker string + UpLimit int64 + Uploaded int64 + UploadedSession int64 + Upspeed int64 + type TorrentAddRequest struct + Files []string + Option struct{ ... } + URLs []string + type TorrentAddResponse struct + type TorrentAddTagsRequest struct + Hashes []string + Tags []string + type TorrentAddTrackerRequest struct + Hash string + URLs []string + type TorrentDeleteRequest struct + DeleteFiles bool + Hashes []string + type TorrentEditTrackerRequest struct + Hash string + NewURL string + OriginalURL string + type TorrentPauseRequest struct + Hashes []string + type TorrentPeerData struct + FullUpdate bool + Peers map[string]struct{ ... } + Rid uint64 + ShowFlag bool + type TorrentProperties struct + AdditionDate int + Comment string + CompletionDate int + CreatedBy string + CreationDate int + DlLimit int + DlSpeed int + DlSpeedAvg int + Eta int + 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 float32 + TimeElapsed int + TotalDownloaded int + TotalDownloadedSession int + TotalSize int + TotalUploaded int + TotalUploadedSession int + TotalWasted int + UpLimit int + UpSpeed int + UpSpeedAvg int + type TorrentRecheckRequest struct + Hashes []string + type TorrentRecheckResponse struct + type TorrentRemoveTagsRequest struct + Hashes []string + Tags []string + type TorrentRemoveTrackerRequest struct + Hash string + URLs []string + type TorrentResumeRequest struct + Hashes []string + type TorrentSetCategoryRequest struct + Category string + Hashes []string + type TorrentState string + type TorrentTracker struct + Msg string + NumDownloaded int + NumLeeches int + NumPeers int + NumSeeds int + Status int + Tier TorrentTrackerTier + URL string + type TorrentTrackerTier struct + Value *int + func (t *TorrentTrackerTier) UnmarshalJSON(d []byte) error