Versions in this module Expand all Collapse all v1 v1.0.1 Apr 13, 2023 Changes in this version + const FilterSortProgress type Client + func (a *Client) IsLoggedIn() bool + func (a *Client) Login(username, password string) error + func (a *Client) Logout() + func (a *Client) Version() (string, error) + func (t *Client) AddTags(tags []string, ts ...*Torrent) error + func (t *Client) AddTagsByHashes(tags, hashes []string) error + func (t *Client) AddTagsForAll(tags []string) error + func (t *Client) BottomPriority(ts ...*Torrent) error + func (t *Client) BottomPriorityByHashes(hashes []string) error + func (t *Client) CreateCategory(category Category) error + func (t *Client) CreateTags(tags ...string) error + func (t *Client) DecreasePriority(ts ...*Torrent) error + func (t *Client) DecreasePriorityByHashes(hashes []string) error + func (t *Client) Delete(deleteFiles bool, ts ...*Torrent) error + func (t *Client) DeleteAll(deleteFiles bool) error + func (t *Client) DeleteByHashes(deleteFiles bool, hashes []string) error + func (t *Client) DeleteTags(tags ...string) error + func (t *Client) DownloadFromFile(cfg TorrentDLConfig) error + func (t *Client) DownloadFromLink(cfg MagnetDLConfig) error + func (t *Client) EditCategory(category Category) error + func (t *Client) GetAllCategories() ([]*Category, error) + func (t *Client) GetAllTags() ([]string, error) + func (t *Client) GetAllTorrentFiles(torrent *Torrent) ([]*TorrentFile, error) + func (t *Client) GetAllTorrentFilesByHash(hash string) ([]*TorrentFile, error) + func (t *Client) IncreasePriority(ts ...*Torrent) error + func (t *Client) IncreasePriorityByHashes(hashes []string) error + func (t *Client) Pause(ts ...*Torrent) error + func (t *Client) PauseAll() error + func (t *Client) PauseByHashes(hashes []string) error + func (t *Client) ReAnnounce(ts ...*Torrent) error + func (t *Client) ReAnnounceAll() error + func (t *Client) ReAnnounceByHashes(hashes []string) error + func (t *Client) Recheck(ts ...*Torrent) error + func (t *Client) RecheckAll() error + func (t *Client) RecheckByHashes(hashes []string) error + func (t *Client) RemoveCategories(categories []string) error + func (t *Client) RemoveTags(tags []string) error + func (t *Client) RemoveTagsByHashes(tags, hashes []string) error + func (t *Client) RemoveTagsForAll(tags []string) error + func (t *Client) Resume(ts ...*Torrent) error + func (t *Client) ResumeAll() error + func (t *Client) ResumeByHashes(hashes []string) error + func (t *Client) SetCategory(category string, ts ...*Torrent) error + func (t *Client) SetCategoryByHashes(category string, hashes []string) error + func (t *Client) SetCategoryForAll(category string) error + func (t *Client) SetFilePriority(hash string, tfs []*TorrentFile, priority FilePriority) error + func (t *Client) ToggleFirstLastPiecePriority(ts ...*Torrent) error + func (t *Client) ToggleFirstLastPiecePriorityByHashes(hashes []string) error + func (t *Client) ToggleFirstLastPiecePriorityForAll() error + func (t *Client) ToggleSequentialDownload(ts ...*Torrent) error + func (t *Client) ToggleSequentialDownloadByHashes(hashes []string) error + func (t *Client) ToggleSequentialDownloadForAll() error + func (t *Client) TopPriority(ts ...*Torrent) error + func (t *Client) TopPriorityByHashes(hashes []string) error + func (t *Client) Torrents(params *Filter) ([]*Torrent, error) + type DownloadBaseConfig struct + AutoTMM bool + Category string + ContentLayout ContentLayout + DlLimit int + FirstLastPiecePrio bool + Paused bool + Rename string + SavePath string + SequentialDownload bool + SkipChecking bool + Tags []string + UpLimit int type Torrent + FirstLastPiecePriority bool + SequentialDownload bool type TorrentFiles + func (tfs TorrentFiles) Filter(fn func(tf *TorrentFile) bool) TorrentFiles + type TorrentState = string + const StateAllocating + const StateCheckingDownload + const StateCheckingResumeData + const StateCheckingUpload + const StateDownloading + const StateError + const StateForcedDownload + const StateForcedMetadataDownload + const StateForcedUpload + const StateMetadataDownload + const StateMissingFiles + const StateMoving + const StatePausedDownload + const StatePausedUpload + const StateQueuedDownload + const StateQueuedUpload + const StateStalledDownload + const StateStalledUpload + const StateUnknown + const StateUploading v1.0.0 Mar 16, 2023 Changes in this version + const APINameApplication + const APINameAuthorization + const APINameEMPTY + const APINameLog + const APINameRSS + const APINameSearch + const APINameSync + const APINameTorrents + const APINameTransfer + const ContentLayoutNoSubFolder + const ContentLayoutOriginal + const ContentLayoutSubFolder + const FilterSortName + const FilterSortPriority + const GoQBitVersion + const WebQBitVersion + var ErrConflict = errors.New("Conflict") + var ErrForbidden = errors.New("Forbidden") + var ErrInternalServerError = errors.New("InternalServerError") + var ErrInvalidRequest = errors.New("InvalidRequest") + var ErrMethodNotAllowed = errors.New("MethodNotAllowed") + var ErrNotFound = errors.New("NotFound") + var ErrUnauthorized = errors.New("Unauthorized") + var ErrUnsupportedMediaType = errors.New("UnsupportedMediaType") + type APIName = string + type ApplicationApi struct + type Authorization struct + func (a *Authorization) IsLoggedIn() bool + func (a *Authorization) Login(username, password string) error + func (a *Authorization) Logout() + func (a *Authorization) Version() (string, error) + type Category struct + DownloadPath string + Name string + SavePath string + type Client struct + func NewClient(host string, opts ...Option) *Client + type ContentLayout = string + type FilePriority = int + const FilePriorityDoNotDL + const FilePriorityHigh + const FilePriorityMaximal + const FilePriorityNormal + type Filter struct + Category string + Hashes []string + Limit int + Offset int + Reverse bool + Sort FilterSort + StatusFilter TorrentStates + Tag string + type FilterSort = string + type MagnetDLConfig struct + Urls []string + type Option func(client *Client) + func WithAuth(username, password string) Option + type Request struct + Jar http.CookieJar + type Torrent struct + AddedOn int + AmountLeft int64 + AutoTmm bool + Availability float64 + Category string + Completed int64 + CompletionOn int + ContentPath string + DlLimit int + DlSpeed int + DownloadPath string + Downloaded int64 + DownloadedSession int + Eta int + FLPiecePrio bool + ForceStart bool + Hash string + InfoHashV1 string + InfoHashV2 string + LastActivity int + MagnetUri string + MaxRatio int + MaxSeedingTime int + Name string + NumComplete int + NumIncomplete int + NumLeechs int + NumSeeds int + Priority int + Progress float64 + Ratio float64 + RatioLimit int + SavePath string + SeedingTime int + SeedingTimeLimit int + SeenComplete int + SeqDl bool + Size int64 + State TorrentStates + SuperSeeding bool + Tags string + TimeActive int + TotalSize int64 + Tracker string + TrackersCount int + UpLimit int + UpSpeed int + Uploaded int64 + UploadedSession int + func (t Torrent) IsChecking() bool + func (t Torrent) IsComplete() bool + func (t Torrent) IsDownloading() bool + func (t Torrent) IsErrored() bool + func (t Torrent) IsPaused() bool + func (t Torrent) IsUploading() bool + type TorrentDLConfig struct + File string + type TorrentFile struct + Availability float64 + Index int + IsSeed bool + Name string + PieceRange []int + Priority FilePriority + Progress float64 + Size int + type TorrentFiles []*TorrentFile + func (tfs TorrentFiles) Len() int + func (tfs TorrentFiles) Less(i, j int) bool + func (tfs TorrentFiles) Swap(i, j int) + type TorrentStates = string + const Allocating + const CheckingDownload + const CheckingResumeData + const CheckingUpload + const Downloading + const Error + const ForcedDownload + const ForcedMetadataDownload + const ForcedUpload + const MetadataDownload + const MissingFiles + const Moving + const PausedDownload + const PausedUpload + const QueuedDownload + const QueuedUpload + const StalledDownload + const StalledUpload + const Unknown + const Uploading + type TorrentsApi struct + func (t *TorrentsApi) AddTags(tags []string, ts ...*Torrent) error + func (t *TorrentsApi) AddTagsByHashes(tags, hashes []string) error + func (t *TorrentsApi) AddTagsForAll(tags []string) error + func (t *TorrentsApi) BottomPriority(ts ...*Torrent) error + func (t *TorrentsApi) BottomPriorityAll() error + func (t *TorrentsApi) BottomPriorityByHashes(hashes []string) error + func (t *TorrentsApi) CreateCategory(category Category) error + func (t *TorrentsApi) CreateTags(tags ...string) error + func (t *TorrentsApi) DecreasePriority(ts ...*Torrent) error + func (t *TorrentsApi) DecreasePriorityAll() error + func (t *TorrentsApi) DecreasePriorityByHashes(hashes []string) error + func (t *TorrentsApi) Delete(deleteFiles bool, ts ...*Torrent) error + func (t *TorrentsApi) DeleteAll(deleteFiles bool) error + func (t *TorrentsApi) DeleteByHashes(deleteFiles bool, hashes []string) error + func (t *TorrentsApi) DeleteTags(tags ...string) error + func (t *TorrentsApi) DownloadFromFile(cfg TorrentDLConfig) error + func (t *TorrentsApi) DownloadFromLink(cfg MagnetDLConfig) error + func (t *TorrentsApi) EditCategory(category Category) error + func (t *TorrentsApi) GetAllCategories() ([]*Category, error) + func (t *TorrentsApi) GetAllTags() ([]string, error) + func (t *TorrentsApi) GetAllTorrentFiles(torrent *Torrent) ([]*TorrentFile, error) + func (t *TorrentsApi) GetAllTorrentFilesByHash(hash string) ([]*TorrentFile, error) + func (t *TorrentsApi) IncreasePriority(ts ...*Torrent) error + func (t *TorrentsApi) IncreasePriorityAll() error + func (t *TorrentsApi) IncreasePriorityByHashes(hashes []string) error + func (t *TorrentsApi) Pause(ts ...*Torrent) error + func (t *TorrentsApi) PauseAll() error + func (t *TorrentsApi) PauseByHashes(hashes []string) error + func (t *TorrentsApi) ReAnnounce(ts ...*Torrent) error + func (t *TorrentsApi) ReAnnounceAll() error + func (t *TorrentsApi) ReAnnounceByHashes(hashes []string) error + func (t *TorrentsApi) Recheck(ts ...*Torrent) error + func (t *TorrentsApi) RecheckAll() error + func (t *TorrentsApi) RecheckByHashes(hashes []string) error + func (t *TorrentsApi) RemoveCategories(categories []string) error + func (t *TorrentsApi) RemoveTags(tags []string) error + func (t *TorrentsApi) RemoveTagsByHashes(tags, hashes []string) error + func (t *TorrentsApi) RemoveTagsForAll(tags []string) error + func (t *TorrentsApi) Resume(ts ...*Torrent) error + func (t *TorrentsApi) ResumeAll() error + func (t *TorrentsApi) ResumeByHashes(hashes []string) error + func (t *TorrentsApi) SetCategory(category string, ts ...*Torrent) error + func (t *TorrentsApi) SetCategoryByHashes(category string, hashes []string) error + func (t *TorrentsApi) SetCategoryForAll(category string) error + func (t *TorrentsApi) SetFilePriority(hash string, tfs []*TorrentFile, priority FilePriority) error + func (t *TorrentsApi) ToggleFirstLastPiecePriority(ts ...*Torrent) error + func (t *TorrentsApi) ToggleFirstLastPiecePriorityByHashes(hashes []string) error + func (t *TorrentsApi) ToggleFirstLastPiecePriorityForAll() error + func (t *TorrentsApi) ToggleSequentialDownload(ts ...*Torrent) error + func (t *TorrentsApi) ToggleSequentialDownloadAll() error + func (t *TorrentsApi) ToggleSequentialDownloadByHashes(hashes []string) error + func (t *TorrentsApi) TopPriority(ts ...*Torrent) error + func (t *TorrentsApi) TopPriorityAll() error + func (t *TorrentsApi) TopPriorityByHashes(hashes []string) error + func (t *TorrentsApi) Torrents(params *Filter) ([]*Torrent, error)