Documentation ¶
Index ¶
- Constants
- type Category
- type ChangelogEntry
- type Codec
- type Container
- type Conversation
- type ConversationMessage
- type Forum
- type ForumInfo
- type ForumPage
- type ForumPost
- type ForumThread
- type ForumThreadPost
- type Inbox
- type Message
- type News
- type NewsItem
- type Origin
- type Resolution
- type SearchTorrentOptions
- type Snatch
- type Source
- type Subscription
- type SubscriptionPost
- type Subscriptions
- type Torrent
- type TorrentInfo
- type User
Constants ¶
View Source
const ( CodecXViD Codec = "XViD" CodecX264 = "x264" CodecMPEG2 = "MPEG2" CodecDiVX = "DiVX" CodecDVDR = "DVDR" CodecVC1 = "VC-1" CodecH264 = "H.264" CodecWMV = "WMV" CodecBR = "BR" CodecX264Hi10P = "x264-Hi10P" )
View Source
const ( ContainerAVI Container = "AVI" ContainerMKV = "MKV" ContainerVOB = "VOB" ContainerMPEG = "MPEG" ContainerMP4 = "MP4" ContainerISO = "ISO" ContainerWMV = "WMV" ContainerTS = "TS" ContainerM4V = "M4V" ContainerM2TS = "M2TS" )
View Source
const ( SourceHDTV Source = "HDTV" SourcePDTV = "PDTV" SourceDSR = "DSR" SourceDVDRip = "DVDRip" SourceTVRip = "TVRip" SourceVHSRip = "VHSRip" SourceBluray = "Bluray" SourceBDRip = "BDRip" SourceBRRip = "BRRip" SourceDVD5 = "DVD5" SourceDVD9 = "DVD9" SourceHDDVD = "HDDVD" SourceWEB = "WEB" SourceBD5 = "BD5" SourceBD9 = "BD9" SourceBD25 = "BD25" SourceBD50 = "BD50" SourceMixed = "Mixed" )
View Source
const ( ResolutionPortableDevice Resolution = "Portable Device" ResolutionSD = "SD" Resolution720p = "720p" Resolution1080i = "1080i" Resolution1080p = "1080p" )
View Source
const ( OriginScene Origin = "Scene" OriginP2P = "P2P" OriginUser = "User" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category string
const ( CategorySeason Category = "Season" CategoryEpisode = "Episode" )
type ChangelogEntry ¶
type ChangelogEntry struct { Changes string `json:"Changes"` Time time.Time `json:"Time"` User string `json:"User"` }
func (*ChangelogEntry) UnmarshalJSON ¶
func (c *ChangelogEntry) UnmarshalJSON(data []byte) error
type Conversation ¶
type Conversation struct { Messages []ConversationMessage `json:"Messages"` Sticky bool `json:"Sticky"` Subject string `json:"Subject"` Unread bool `json:"Unread"` }
func (*Conversation) UnmarshalJSON ¶
func (c *Conversation) UnmarshalJSON(data []byte) error
type ConversationMessage ¶
type Forum ¶
type Forum struct { Description string `json:"Description"` ForumID int `json:"ForumID"` ForumName string `json:"ForumName"` LastPost ForumPost `json:"LastPost"` PostCount int `json:"NumPosts"` TopicCount int `json:"NumTopics"` Sort int `json:"Sort"` }
func (*Forum) UnmarshalJSON ¶
type ForumInfo ¶
type ForumInfo struct { GroupName string `json:"GroupName"` MinClassRead int `json:"MinClassRead"` Name string `json:"Name"` TopicCount int `json:"Topics"` }
func (*ForumInfo) UnmarshalJSON ¶
type ForumPage ¶
type ForumPage struct { Info ForumInfo `json:"ForumInfo"` MaxPages int `json:"MaxPages"` Threads []ForumThread `json:"Threads"` }
type ForumPost ¶
type ForumPost struct { ID int `json:"ID"` Time time.Time `json:"Time"` Title string `json:"Title"` TopicID int `json:"TopicID"` UserID int `json:"UserID"` Username string `json:"Username"` }
func (*ForumPost) UnmarshalJSON ¶
type ForumThread ¶
type ForumThread struct { Author string `json:"Author"` ID int `json:"ID"` Locked bool `json:"Locked"` Sticky bool `json:"Sticky"` LastPost ForumThreadPost `json:"LastPost"` Title string `json:"Title"` }
func (*ForumThread) UnmarshalJSON ¶
func (t *ForumThread) UnmarshalJSON(data []byte) error
type ForumThreadPost ¶
type ForumThreadPost struct { Author string `json:"Author"` ID int `json:"ID"` Time time.Time `json:"Time"` }
func (*ForumThreadPost) UnmarshalJSON ¶
func (p *ForumThreadPost) UnmarshalJSON(data []byte) error
type Message ¶
type Message struct { Date time.Time `json:"Date"` ID int `json:"ID"` Sticky bool `json:"Sticky"` Subject string `json:"Subject"` Unread bool `json:"Unread"` UserID int `json:"UserID"` Username string `json:"Username"` }
func (*Message) UnmarshalJSON ¶
type NewsItem ¶
type NewsItem struct { Author string `json:"Author"` Body string `json:"Body"` Time time.Time `json:"Time"` Title string `json:"Title"` ID int `json:"ID"` }
func (*NewsItem) UnmarshalJSON ¶
type Resolution ¶
type Resolution string
type SearchTorrentOptions ¶
type SearchTorrentOptions struct { TorrentID int `json:"id,omitempty"` Series string `json:"series,omitempty"` Category Category `json:"category,omitempty"` GroupName string `json:"name,omitempty"` Search string `json:"search,omitempty"` Codecs []Codec `json:"codec,omitempty"` Containers []Container `json:"container,omitempty"` Hash string `json:"hash,omitempty"` TVDbID string `json:"tvdb,omitempty"` TVRageID string `json:"tvrage,omitempty"` Time string `json:"time,omitempty"` Age string `json:"age,omitempty"` }
type Snatch ¶
type Snatch struct { ID int `json:"ID"` Downloaded int `json:"Downloaded"` Uploaded int `json:"Uploaded"` IsSeeding bool `json:"IsSeeding"` Ratio float64 `json:"Ratio"` SeedTime time.Duration `json:"SeedTime"` SnatchTime time.Time `json:"SnatchTime"` TorrentID int `json:"TorrentId"` TorrentInfo TorrentInfo `json:"TorrentInfo"` }
func (*Snatch) UnmarshalJSON ¶
type Subscription ¶
type SubscriptionPost ¶
type SubscriptionPost struct { AuthorID int `json:"AuthorID"` ID int `json:"ID"` Time time.Time `json:"Time"` Username string `json:"Username"` }
func (*SubscriptionPost) UnmarshalJSON ¶
func (p *SubscriptionPost) UnmarshalJSON(data []byte) error
type Subscriptions ¶
type Subscriptions []Subscription
func (*Subscriptions) UnmarshalJSON ¶
func (s *Subscriptions) UnmarshalJSON(data []byte) error
type Torrent ¶
type Torrent struct { Category string `json:"Category"` Codec string `json:"Codec"` Container string `json:"Container"` DownloadURL string `json:"DownloadURL"` GroupID int `json:"GroupID"` GroupName string `json:"GroupName"` ImdbID int `json:"ImdbID"` InfoHash string `json:"InfoHash"` Leechers int `json:"Leechers"` Origin string `json:"Origin"` ReleaseName string `json:"ReleaseName"` Resolution string `json:"Resolution"` Seeders int `json:"Seeders"` Series string `json:"Series"` SeriesID int `json:"SeriesID"` SeriesPoster string `json:"SeriesPoster"` Size int `json:"Size"` Snatched int `json:"Snatched"` Source string `json:"Source"` Time time.Time `json:"Time"` TorrentID int `json:"TorrentID"` TvdbID int `json:"TvdbID"` TvrageID int `json:"TvrageID"` YoutubeTrailer string `json:"YoutubeTrailer"` }
func (*Torrent) UnmarshalJSON ¶
type TorrentInfo ¶
type TorrentInfo struct { Codec Codec `json:"Codec"` Container Container `json:"Container"` GroupName string `json:"GroupName"` Resolution Resolution `json:"Resolution"` Series string `json:"Series"` Source Source `json:"Source"` Year int `json:"Year"` }
func (*TorrentInfo) UnmarshalJSON ¶
func (i *TorrentInfo) UnmarshalJSON(data []byte) error
type User ¶
type User struct { UserID int `json:"UserID"` Username string `json:"Username"` Email string `json:"Email"` Upload int `json:"Upload"` Download int `json:"Download"` Lumens int `json:"Lumens"` Bonus float64 `json:"Bonus"` JoinDate time.Time `json:"JoinDate"` Title string `json:"Title"` Enabled bool `json:"Enabled"` Paranoia int `json:"Paranoia"` Invites int `json:"Invites"` Class string `json:"Class"` ClassLevel int `json:"ClassLevel"` HnR int `json:"HnR"` UploadsSnatched int `json:"UploadsSnatched"` Snatches int `json:"Snatches"` }
func (*User) UnmarshalJSON ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.