Documentation
¶
Overview ¶
Contains structs and constants for the xREL package, reflecting the xREL API JSON returns.
Index ¶
- Constants
- type Author
- type Category
- type Comment
- type Comments
- type Edits
- type ExtInfoExternal
- type ExtInfoExternalSource
- type ExtInfoMediaItem
- type ExtInfoReleaseDate
- type ExtInfoSearchResult
- type ExtendedExtInfo
- type FavList
- type FavListEntryModificationResult
- type Filter
- type Flags
- type Group
- type P2PCategory
- type P2PRelease
- type P2PReleases
- type Pagination
- type RateLimitStatus
- type Rating
- type Release
- type ReleaseSearchResult
- type Releases
- type ShortExtInfo
- type ShortFavList
- type Size
- type UpcomingTitle
- type UpcomingTitleP2PRelease
- type UpcomingTitleRelease
- type User
- type Votes
Constants ¶
View Source
const ( TYPE_MOVIE = "movie" TYPE_TV = "tv" TYPE_GAME = "game" TYPE_CONSOLE = "console" TYPE_SOFTWARE = "software" TYPE_XXX = "xxx" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comments ¶
type Comments struct { TotalCount string `json:"total_count"` Pagination Pagination `json:"pagination"` List []Comment `json:"list"` }
type ExtInfoExternal ¶
type ExtInfoExternal struct { Source ExtInfoExternalSource `json:"source"` LinkUrl string `json:"link_url"` Plot string `json:"plot"` }
type ExtInfoExternalSource ¶
type ExtInfoMediaItem ¶
type ExtInfoMediaItem struct { Type string `json:"type"` Description string `json:"description"` TimeUnix int64 `json:"time"` UrlFull string `json:"url_full"` // IsImage() UrlThumb string `json:"url_thumb"` YoutubeId string `json:"youtube_id"` // IsVideo() VideoURL string `json:"video_url"` // IsVideo() }
func (*ExtInfoMediaItem) GetTime ¶
func (extInfoMediaItem *ExtInfoMediaItem) GetTime() time.Time
func (ExtInfoMediaItem) IsImage ¶
func (extInfoMediaItem ExtInfoMediaItem) IsImage() bool
func (ExtInfoMediaItem) IsVideo ¶
func (extInfoMediaItem ExtInfoMediaItem) IsVideo() bool
type ExtInfoReleaseDate ¶
type ExtInfoSearchResult ¶
type ExtInfoSearchResult struct { Total int `json:"total"` Results []ShortExtInfo `json:"results"` }
type ExtendedExtInfo ¶
type ExtendedExtInfo struct { Id string `json:"id"` Type string `json:"type"` Title string `json:"title"` LinkHref string `json:"link_href"` Genre string `json:"genre"` AltTitle string `json:"alt_title"` CoverUrl string `json:"cover_url"` URIs []string `json:"uris"` Rating float32 `json:"rating"` OwnRating string `json:"own_rating"` NumRatings int `json:"num_ratings"` ReleaseDates []ExtInfoReleaseDate `json:"release_dates"` Externals []ExtInfoExternal `json:"externals"` Releases []Release `json:"releases"` P2PReleases []P2PRelease `json:"p2p_releases"` }
type FavList ¶
type FavList struct { Id int `json:"id"` Name string `json:"name"` IsPublic bool `json:"public"` DoNotify bool `json:"notify"` DoAutoRead bool `json:"auto_read"` IncludesP2P bool `json:"include_p2p"` Description string `json:"description"` PasswordHash string `json:"passwort_hash"` // $password_hash = sha1($list->id . "\r\n" . $list->password); EntryCount int `json:"entry_count"` UnreadReleases int `json:"unread_releases"` }
type FavListEntryModificationResult ¶
type FavListEntryModificationResult struct { Success int `json:"success"` // TODO: Why is this an int? FavList ShortFavList `json:"fav_list"` ExtInfo ShortExtInfo `json:"ext_info"` }
type Flags ¶
type P2PCategory ¶
type P2PRelease ¶
type P2PRelease struct { Id string `json:"id"` Dirname string `json:"dirname"` DirnameNormalized string `json:"dirname_normalized"` LinkHref string `json:"link_href"` MainLanguage string `json:"main_lang"` PubTimeUnix int64 `json:"pub_time"` PostTimeUnix int64 `json:"post_time"` SizeInMB int `json:"size_mb"` Group Group `json:"group"` NumRatings int `json:"num_ratings"` VideoRating float32 `json:"video_rating"` AudioRating float32 `json:"audio_rating"` ExtInfo ShortExtInfo `json:"ext_info"` TVSeason int `json:"tv_season"` TVEpisode int `json:"tv_episode"` Comments int `json:"comments"` }
func (*P2PRelease) GetPostTime ¶
func (p2pRelease *P2PRelease) GetPostTime() time.Time
func (*P2PRelease) GetPubTime ¶
func (p2pRelease *P2PRelease) GetPubTime() time.Time
type P2PReleases ¶
type P2PReleases struct { TotalCount int `json:"total_count"` Pagination Pagination `json:"pagination"` List []P2PRelease `json:"list"` }
type Pagination ¶
type RateLimitStatus ¶
type RateLimitStatus struct { RemainingCalls int `json:"remaining_calls"` ResetTimeU int64 `json:"reset_time_u"` }
func (*RateLimitStatus) GetResetTime ¶
func (rateLimitStatus *RateLimitStatus) GetResetTime() time.Time
type Release ¶
type Release struct { Id string `json:"id"` Dirname string `json:"dirname"` LinkHref string `json:"link_href"` TimeUnix int64 `json:"time"` GroupName string `json:"group_name"` NukeReason string `json:"nuke_reason"` Size Size `json:"size"` VideoType string `json:"video_type"` AudioType string `json:"audio_type"` NumRatings int `json:"num_ratings"` VideoRating float32 `json:"video_rating"` AudioRating float32 `json:"audio_rating"` ExtInfo ShortExtInfo `json:"ext_info"` TVSeason int `json:"tv_season"` TVEpisode int `json:"tv_episode"` Comments int `json:"comments"` Flags Flags `json:"flags"` ProofUrl string `json:"proof_url"` }
type ReleaseSearchResult ¶
type ReleaseSearchResult struct { Total int `json:"total"` SceneResults []Release `json:"results"` P2PResults []P2PRelease `json:"p2p_results"` }
type Releases ¶
type Releases struct { TotalCount int `json:"total_count"` Pagination Pagination `json:"pagination"` List []Release `json:"list"` }
type ShortExtInfo ¶
type ShortFavList ¶
type UpcomingTitle ¶
type UpcomingTitle struct { Id string `json:"id"` Type string `json:"type"` Title string `json:"title"` LinkHref string `json:"link_href"` Genre string `json:"genre"` AltTitle string `json:"alt_title"` CoverUrl string `json:"cover_url"` Releases []UpcomingTitleRelease `json:"releases"` P2PReleases []UpcomingTitleP2PRelease `json:"p2p_releases"` }
type UpcomingTitleP2PRelease ¶
type UpcomingTitleP2PRelease struct { Id string `json:"id"` Dirname string `json:"dirname"` LinkHref string `json:"link_href"` PubTimeUnix int64 `json:"pub_time"` }
func (*UpcomingTitleP2PRelease) GetPubTime ¶
func (upcomingTitleP2PRelease *UpcomingTitleP2PRelease) GetPubTime() time.Time
type UpcomingTitleRelease ¶
type UpcomingTitleRelease struct { Id string `json:"id"` Dirname string `json:"dirname"` LinkHref string `json:"link_href"` TimeUnix int64 `json:"time"` Flags Flags `json:"flags"` }
func (*UpcomingTitleRelease) GetTime ¶
func (upcomingTitleRelease *UpcomingTitleRelease) GetTime() time.Time
Click to show internal directories.
Click to hide internal directories.