Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Title string `json:"title"` MediaMetadata *map[string]MediaItem `json:"media_metadata"` GalleryData struct { Items []struct { MediaID string `json:"media_id"` ID int `json:"id"` } `json:"items"` } `json:"gallery_data"` SubredditNamePrefixed string `json:"subreddit_name_prefixed"` IsRedditMediaDomain bool `json:"is_reddit_media_domain"` Domain string `json:"domain"` Preview struct { Images []Images `json:"images"` Enabled bool `json:"enabled"` } `json:"preview"` Author string `json:"author"` Media struct { RedditVideo RedditVideo `json:"reddit_video"` } `json:"media"` URL string `json:"url"` IsVideo bool `json:"is_video"` }
type Images ¶
type Images *struct { Source struct { URL string `json:"url"` Width int `json:"width"` Height int `json:"height"` } `json:"source"` Resolutions []struct { URL string `json:"url"` Width int `json:"width"` Height int `json:"height"` } `json:"resolutions"` Variants struct{} `json:"variants"` ID string `json:"id"` }
type KindData ¶
type KindData struct { Data struct { Children []struct { Data Data `json:"data"` } `json:"children"` } `json:"data"` }
type MediaItem ¶
type MediaItem struct { E string `json:"e"` M string `json:"m"` S Resolution `json:"s"` }
type RedditPost ¶
type RedditPost []KindData
type RedditVideo ¶
type Resolution ¶
Click to show internal directories.
Click to hide internal directories.