Versions in this module Expand all Collapse all v0 v0.4.0 Nov 7, 2021 Changes in this version + func GroupString(g Group) string + func ReleaseTypeString(r int) string + func TorrentString(t Torrent) string + type Account struct + AuthKey string + ID int + Notifications struct{ ... } + PassKey string + UserStats struct{ ... } + Username string + type AccountResponse struct + Error string + Response Account + Status string + type Announcements struct + Announcements []struct{ ... } + BlogPosts []struct{ ... } + type AnnouncementsResponse struct + Error string + Response Announcements + Status string + type Artist struct + Body string + HasBookmarked bool + ID int + Image string + NameF string + NotificationsEnabled bool + Requests []struct{ ... } + SimilarArtists []struct{ ... } + Statistics struct{ ... } + Tags []struct{ ... } + TorrentGroup []ArtistGroupStruct + VanityHouse bool + func (a Artist) Name() string + type ArtistAlias struct + AliasID int + ID int + Name string + type ArtistBookmarks struct + Artists []ArtistID + type ArtistBookmarksResponse struct + Error string + Response ArtistBookmarks + Status string + type ArtistGroupStruct struct + ArtistsF []ArtistAlias + ExtendedArtists ExtendedArtistMap + GroupCatalogueNumberF string + GroupCategoryID string + GroupID int + GroupNameF string + GroupRecordLabelF string + GroupVanityHouse bool + GroupYearF int + HasBookmarked bool + ReleaseTypeF int + TagsF map[int]string + Torrent []ArtistTorrentStruct + WikiImage string + func (g ArtistGroupStruct) Artist() string + func (g ArtistGroupStruct) Artists() []string + func (g ArtistGroupStruct) CatalogueNumber() string + func (g ArtistGroupStruct) ID() int + func (g ArtistGroupStruct) Importance() []int + func (g ArtistGroupStruct) Name() string + func (g ArtistGroupStruct) RecordLabel() string + func (g ArtistGroupStruct) ReleaseType() int + func (g ArtistGroupStruct) String() string + func (g ArtistGroupStruct) Tags() map[int]string + func (g ArtistGroupStruct) Year() int + type ArtistID struct + ID string + Name string + type ArtistResponse struct + Error string + Response Artist + Status string + type ArtistTorrentStruct struct + EncodingF string + FileCountF int + FormatF string + FreeTorrent string + GroupIDF int + HasCue bool + HasFile int + HasLogF bool + IDF int + Leechers int + LogScore int + MediaF string + RemasterRecordLabelF string + RemasterTitleF string + RemasterYearF int + RemasteredF bool + SceneF bool + Seeders int + Size int64 + Snatched int + Time string + func (t ArtistTorrentStruct) Encoding() string + func (t ArtistTorrentStruct) FileCount() int + func (t ArtistTorrentStruct) FileSize() int64 + func (t ArtistTorrentStruct) Format() string + func (t ArtistTorrentStruct) GroupID() int + func (t ArtistTorrentStruct) HasLog() bool + func (t ArtistTorrentStruct) ID() int + func (t ArtistTorrentStruct) Media() string + func (t ArtistTorrentStruct) RemasterRecordLabel() string + func (t ArtistTorrentStruct) RemasterTitle() string + func (t ArtistTorrentStruct) RemasterYear() int + func (t ArtistTorrentStruct) Remastered() bool + func (t ArtistTorrentStruct) Scene() bool + func (t ArtistTorrentStruct) String() string + type Categories struct + Categories []struct{ ... } + type CategoriesResponse struct + Error string + Response Categories + Status string + type Client interface + CreateDownloadURL func(id int) (string, error) + CreateUploadURL func() (url.URL, string, error) + Do func(action string, params url.Values, result interface{}) error + GetAccount func() error + GetAnnouncements func() (Announcements, error) + GetArtist func(id int, params url.Values) (Artist, error) + GetArtistBookmarks func() (ArtistBookmarks, error) + GetCategories func() (Categories, error) + GetConversation func(id int) (Conversation, error) + GetForum func(id int, params url.Values) (Forum, error) + GetJSON func(requestURL string, responseObj interface{}) error + GetMailbox func(params url.Values) (Mailbox, error) + GetNotifications func(params url.Values) (Notifications, error) + GetRequest func(id int, params url.Values) (Request, error) + GetSimilarArtists func(id, limit int) (SimilarArtists, error) + GetSubscriptions func(params url.Values) (Subscriptions, error) + GetThread func(id int, params url.Values) (Thread, error) + GetTopTenTags func(params url.Values) (TopTenTags, error) + GetTopTenTorrents func(params url.Values) (TopTenTorrents, error) + GetTopTenUsers func(params url.Values) (TopTenUsers, error) + GetTorrent func(id int, params url.Values) (GetTorrentStruct, error) + GetTorrentBookmarks func() (TorrentBookmarks, error) + GetTorrentGroup func(id int, params url.Values) (TorrentGroup, error) + Login func(username, password string) error + Logout func() error + SearchRequests func(searchStr string, params url.Values) (RequestsSearch, error) + SearchTorrents func(searchStr string, params url.Values) (TorrentSearch, error) + SearchUsers func(searchStr string, params url.Values) (UserSearch, error) + func Cache(whatAPI Client, db *sql.DB, cacheFor time.Duration) (Client, error) + func NewClient(ur, agent string) (Client, error) + type ClientStruct struct + func (w *ClientStruct) GetAccount() error + func (w *ClientStruct) GetAnnouncements() (Announcements, error) + func (w *ClientStruct) GetArtist(id int, params url.Values) (Artist, error) + func (w *ClientStruct) GetArtistBookmarks() (ArtistBookmarks, error) + func (w *ClientStruct) GetCategories() (Categories, error) + func (w *ClientStruct) GetConversation(id int) (Conversation, error) + func (w *ClientStruct) GetForum(id int, params url.Values) (Forum, error) + func (w *ClientStruct) GetJSON(requestURL string, responseObj interface{}) (err error) + func (w *ClientStruct) GetMailbox(params url.Values) (Mailbox, error) + func (w *ClientStruct) GetNotifications(params url.Values) (Notifications, error) + func (w *ClientStruct) GetRequest(id int, params url.Values) (Request, error) + func (w *ClientStruct) GetSimilarArtists(id, limit int) (SimilarArtists, error) + func (w *ClientStruct) GetSubscriptions(params url.Values) (Subscriptions, error) + func (w *ClientStruct) GetThread(id int, params url.Values) (Thread, error) + func (w *ClientStruct) GetTopTenTags(params url.Values) (TopTenTags, error) + func (w *ClientStruct) GetTopTenTorrents(params url.Values) (TopTenTorrents, error) + func (w *ClientStruct) GetTopTenUsers(params url.Values) (TopTenUsers, error) + func (w *ClientStruct) GetTorrent(id int, params url.Values) (GetTorrentStruct, error) + func (w *ClientStruct) GetTorrentBookmarks() (TorrentBookmarks, error) + func (w *ClientStruct) GetTorrentGroup(id int, params url.Values) (TorrentGroup, error) + func (w *ClientStruct) Login(username, password string) error + func (w *ClientStruct) Logout() error + func (w *ClientStruct) SearchRequests(searchStr string, params url.Values) (RequestsSearch, error) + func (w *ClientStruct) SearchTorrents(searchStr string, params url.Values) (TorrentSearch, error) + func (w *ClientStruct) SearchUsers(searchStr string, params url.Values) (UserSearch, error) + func (w ClientStruct) Client() *http.Client + func (w ClientStruct) CreateDownloadURL(id int) (string, error) + func (w ClientStruct) CreateUploadURL() (u url.URL, a string, err error) + func (w ClientStruct) Do(action string, params url.Values, result interface{}) error + type Conversation struct + ConvID int + Messages []struct{ ... } + Sticky bool + Subject string + type ConversationResponse struct + Error string + Response Conversation + Status string + type ExtendedArtistMap map[string][]ArtistAlias + type FileStruct struct + NameF string + Size int64 + func (fs FileStruct) Name() string + type Forum struct + CurrentPage int + ForumName string + Pages int + SpecificRules []struct{ ... } + Threads []struct{ ... } + type ForumResponse struct + Error string + Response Forum + Status string + type GenericResponse struct + Error string + Status string + type GetTorrentStruct struct + Group GroupStruct + Torrent TorrentStruct + type Group interface + Artist func() string + ID func() int + Name func() string + ReleaseType func() int + String func() string + Tags func() map[int]string + Year func() int + type GroupExt interface + Artists func() []string + Importance func() []int + WikiBody func() string + WikiImage func() string + type GroupRelease interface + CatalogueNumber func() string + RecordLabel func() string + type GroupStruct struct + CatalogueNumberF string + CategoryID int + CategoryName string + IDF int + IsBookmarked bool + MusicInfo MusicInfo + NameF string + RecordLabelF string + ReleaseTypeF int + TagsF map[int]string + Time string + VanityHouse bool + WikiBodyF string + WikiImageF string + YearF int + func (g GroupStruct) Artist() string + func (g GroupStruct) Artists() []string + func (g GroupStruct) CatalogueNumber() string + func (g GroupStruct) ID() int + func (g GroupStruct) Importance() []int + func (g GroupStruct) Name() string + func (g GroupStruct) RecordLabel() string + func (g GroupStruct) ReleaseType() int + func (g GroupStruct) String() string + func (g GroupStruct) Tags() map[int]string + func (g GroupStruct) WikiBody() string + func (g GroupStruct) WikiImage() string + func (g GroupStruct) Year() int + type Mailbox struct + CurrentPage int + Messages []struct{ ... } + Pages int + type MailboxResponse struct + Error string + Response Mailbox + Status string + type MusicInfo struct + Artists []MusicInfoStruct + Composers []MusicInfoStruct + Conductor []MusicInfoStruct + DJ []MusicInfoStruct + Producer []MusicInfoStruct + RemixedBy []MusicInfoStruct + With []MusicInfoStruct + type MusicInfoStruct struct + ID int + Name string + type Notifications struct + CurrentPages int + NumNew int + Pages int + Results []struct{ ... } + type NotificationsResponse struct + Error string + Response Notifications + Status string + type PSList struct + func (p PSList) PublicSuffix(d string) string + func (p PSList) String() string + type Request struct + BitrateList []string + CanEdit bool + CanVote bool + CatalogueNumber string + CategoryID int + CategoryName string + CommentPage int + CommentPages int + Comments []struct{ ... } + Description string + FillerID int + FillerName string + FormatList []string + Image string + IsFilled bool + LastVote string + LogCue string + MediaList []string + MinimumVote int + MusicInfo struct{ ... } + ReleaseName string + ReleaseType int + RequestID int + RequestTax float64 + RequestiorID int + RequestorName string + Tags map[int]string + TimeAdded string + TimeFilled string + Title string + TopContributors []struct{ ... } + TorrentID int + TotalBounty int64 + VoteCount int + Year int + type RequestResponse struct + Error string + Response Request + Status string + type RequestsSearch struct + CurrentPage int + Pages int + Results []struct{ ... } + type RequestsSearchResponse struct + Error string + Response RequestsSearch + Status string + type SearchTorrentStruct struct + Artists []ArtistAlias + CanUseToken bool + EditionID int + EncodingF string + FileCountF int + FormatF string + HasCue bool + HasLogF bool + IsFreeleech bool + IsNeutralLeech bool + IsPersonalFreeleech bool + Leechers int + LogScore int + MediaF string + RemasterCatalogueNumberF string + RemasterTitleF string + RemasterYearF int + RemasteredF bool + SceneF bool + Seeders int + Size int64 + Snatches int + Time string + TorrentID int + VanityHouse bool + func (ts SearchTorrentStruct) Encoding() string + func (ts SearchTorrentStruct) FileCount() int + func (ts SearchTorrentStruct) FileSize() int64 + func (ts SearchTorrentStruct) Format() string + func (ts SearchTorrentStruct) HasLog() bool + func (ts SearchTorrentStruct) ID() int + func (ts SearchTorrentStruct) Media() string + func (ts SearchTorrentStruct) RemasterCatalogueNumber() string + func (ts SearchTorrentStruct) RemasterTitle() string + func (ts SearchTorrentStruct) RemasterYear() int + func (ts SearchTorrentStruct) Remastered() bool + func (ts SearchTorrentStruct) Scene() bool + func (ts SearchTorrentStruct) String() string + type SimilarArtists []struct + type Subscriptions struct + Threads []struct{ ... } + type SubscriptionsResponse struct + Error string + Response Subscriptions + Status string + type Thread struct + CurrentPage int + ForumID int + ForumName string + Locked bool + Pages int + Poll struct{ ... } + Posts []struct{ ... } + Sticky bool + Subscribed bool + ThreadID int + ThreadTitle string + type ThreadResponse struct + Error string + Response Thread + Status string + type TopTenResult struct + Artist string + Data int64 + Encoding string + Format string + GroupCategory int + GroupID int + GroupNameF string + GroupYear int + HasCue bool + HasLog bool + HasLogDB bool + Leechers int + LogChecksum string + LogScore string + Media string + ReleaseType string + RemasterTitleF string + Scene bool + Seeders int + Size int64 + Snatched int + Tags map[int]string + TorrentID int + WikiImage string + Year int + func (r TopTenResult) Name() string + func (r TopTenResult) RemasterTitle() string + type TopTenTags []struct + type TopTenTagsResponse struct + Error string + Response TopTenTags + Status string + type TopTenTorrents []struct + type TopTenTorrentsResponse struct + Error string + Response TopTenTorrents + Status string + type TopTenUsers []struct + type TopTenUsersResponse struct + Error string + Response TopTenUsers + Status string + type Torrent interface + Encoding func() string + FileCount func() int + FileSize func() int64 + Format func() string + HasLog func() bool + ID func() int + Media func() string + RemasterTitle func() string + RemasterYear func() int + Remastered func() bool + Scene func() bool + String func() string + type TorrentBookmarks struct + Bookmarks []struct{ ... } + type TorrentBookmarksResponse struct + Error string + Response TorrentBookmarks + Status string + type TorrentCatalogueNumber interface + RemasterCatalogueNumber func() string + type TorrentExt interface + Description func() string + type TorrentFiles interface + FilePath func() string + Files func() ([]FileStruct, error) + type TorrentGroup struct + Group GroupStruct + Torrent []TorrentStruct + type TorrentGroupResponse struct + Error string + Response TorrentGroup + Status string + type TorrentRecordLabel interface + RemasterRecordLabel func() string + type TorrentResponse struct + Error string + Response GetTorrentStruct + Status string + type TorrentSearch struct + CurrentPage int + Pages int + Results []TorrentSearchResultStruct + type TorrentSearchResponse struct + Error string + Response TorrentSearch + Status string + type TorrentSearchResultStruct struct + ArtistF string + Bookmarked bool + GroupID int + GroupName string + GroupTime string + GroupYear int + ReleaseTypeF int + TagsF map[int]string + Torrents []SearchTorrentStruct + TotalLeechers int + TotalSeeders int + TotalSnatched int + VanityHouse bool + func (ts TorrentSearchResultStruct) Artist() string + func (ts TorrentSearchResultStruct) ID() int + func (ts TorrentSearchResultStruct) Name() string + func (ts TorrentSearchResultStruct) ReleaseType() int + func (ts TorrentSearchResultStruct) String() string + func (ts TorrentSearchResultStruct) Tags() map[int]string + func (ts TorrentSearchResultStruct) Year() int + type TorrentStruct struct + DescriptionF string + EncodingF string + FileCountF int + FileList string + FilePathF string + FormatF string + FreeTorrent string + HasCue bool + HasLogF bool + IDF int + InfoHash string + Leechers int + LogScore int + MediaF string + RemasterCatalogueNumberF string + RemasterRecordLabelF string + RemasterTitleF string + RemasterYearF int + RemasteredF bool + Reported bool + SceneF bool + Seeders int + Size int64 + Snatched int + Time string + UserID int + Username string + func (t *TorrentStruct) Files() ([]FileStruct, error) + func (t TorrentStruct) Description() string + func (t TorrentStruct) Encoding() string + func (t TorrentStruct) FileCount() int + func (t TorrentStruct) FilePath() string + func (t TorrentStruct) FileSize() int64 + func (t TorrentStruct) Format() string + func (t TorrentStruct) HasLog() bool + func (t TorrentStruct) ID() int + func (t TorrentStruct) Media() string + func (t TorrentStruct) ParseFileList() ([]FileStruct, error) + func (t TorrentStruct) RemasterCatalogueNumber() string + func (t TorrentStruct) RemasterRecordLabel() string + func (t TorrentStruct) RemasterTitle() string + func (t TorrentStruct) RemasterYear() int + func (t TorrentStruct) Remastered() bool + func (t TorrentStruct) Scene() bool + func (t TorrentStruct) String() string + type User struct + Avatar string + Community struct{ ... } + IsFriend bool + Personal struct{ ... } + ProfileText string + Ranks struct{ ... } + Stats struct{ ... } + Username string + type UserResponse struct + Error string + Response User + Status string + type UserSearch struct + CurrentPage int + Pages int + Results []struct{ ... } + type UserSearchResponse struct + Error string + Response UserSearch + Status string