Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenBody ¶
type AccessTokenBody struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` ExpiresIn uint `json:"expires_in"` Scope string `json:"scope"` }
AccessTokenBody : Model for Reddit AccessBody Response
type Data ¶
type Data struct { Subreddit string `json:"subreddit"` Selftext string `json:"selftext"` AuthorFullname string `json:"author_fullname"` Title string `json:"title"` Downs int `json:"downs"` Name string `json:"name"` Ups int `json:"ups"` IsOriginalContent bool `json:"is_original_content"` Score int `json:"score"` Over18 bool `json:"over_18"` Preview Preview `json:"preview"` Spoiler bool `json:"spoiler"` Locked bool `json:"locked"` ID string `json:"id"` Author string `json:"author"` URL string `json:"url"` CreatedUtc float64 `json:"created_utc"` Media interface{} `json:"media"` IsVideo bool `json:"is_video"` }
Data :
func (Data) GetCleanPreviewImages ¶
GetCleanPreviewImages : Removes `amp;` from preview image url
func (Data) GetShortLink ¶
GetShortLink : Get the short URL for the post
type MainData ¶
type MainData struct { Modhash string `json:"modhash"` Dist int `json:"dist"` Children []Children `json:"children"` After string `json:"after"` Before interface{} `json:"before"` }
MainData :
type Meme ¶
type Meme struct { Name string `json:"name"` PostLink string `json:"postLink"` SubReddit string `json:"subreddit"` Title string `json:"title"` URL string `json:"url"` Author string `json:"author"` NSFW bool `json:"nsfw"` Spoiler bool `json:"spoiler"` Created int64 `json:"created"` IPFS string `json:"ipfs"` }
Meme : Basic structure of a Meme Response
type Preview ¶
type Preview struct { Images []PreviewImages `json:"images"` Enabled bool `json:"enabled"` }
Preview :
type PreviewImage ¶
type PreviewImage struct { URL string `json:"url"` Width int `json:"width"` Height int `json:"height"` }
PreviewImage :
type PreviewImages ¶
type PreviewImages struct { Source PreviewImage `json:"source"` Resolutions []PreviewImage `json:"resolutions"` Variants interface{} `json:"variants"` ID string `json:"id"` }
PreviewImages :
Click to show internal directories.
Click to hide internal directories.