mirror of
https://github.com/mgerb/top-of-reddit
synced 2026-01-11 19:12:50 +00:00
generate statistics for the year of 2017
This commit is contained in:
23
src/model/reddit-post.go
Normal file
23
src/model/reddit-post.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package model
|
||||
|
||||
// RedditPost -
|
||||
type RedditPost struct {
|
||||
Subreddit string `json:"subreddit"`
|
||||
ID string `json:"id"`
|
||||
Gilded int `json:"gilded"`
|
||||
Score int `json:"score"`
|
||||
Author string `json:"author"`
|
||||
Domain string `json:"domain"`
|
||||
Over_18 bool `json:"over_18"`
|
||||
Thumbnail string `json:"thumbnail"`
|
||||
Permalink string `json:"permalink"`
|
||||
Url string `json:"url"`
|
||||
Title string `json:"title"`
|
||||
Created float64 `json:"created"`
|
||||
Created_utc float64 `json:"created_utc"`
|
||||
Num_comments int `json:"num_comments"`
|
||||
Ups int `json:"ups"`
|
||||
|
||||
// extra fields
|
||||
TopPosition int // highest achieved position on front page
|
||||
}
|
||||
Reference in New Issue
Block a user