Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
func (*Poller) Start ¶
func (r *Poller) Start(c chan []*RedditPost)
type PollerInterface ¶
type PollerInterface interface {
Start(c chan []*RedditPost)
Stop()
}
type RedditPost ¶
type RedditPost struct {
Author string `json:"author"`
ID string `json:"id"`
Permalink string `json:"permalink"`
Selftext string `json:"selftext"`
Subreddit string `json:"subreddit"`
Thumbnail string `json:"thumbnail"`
Title string `json:"title"`
URL string `json:"URL"`
Score int `json:"score"`
NumComments int `json:"num_comments"`
CreatedUTC float64 `json:"created_utc"`
}
Click to show internal directories.
Click to hide internal directories.