Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HN ¶
type HN struct {
// contains filtered or unexported fields
}
HN represents a wrapper for HackerNews client
func (*HN) GetStoryCount ¶
type State ¶
type State struct { Topics []string `json:"topics"` IDs []int64 `json:"ids"` Stories []Story `json:"stories"` Updated time.Time `json:"on"` }
State represens Hacker News query.
type Story ¶
type Story struct { // ID is the item's unique id. ID int64 `json:"id"` // Time is the creation date of the item, in Unix Time. Time int64 `json:"time"` // Author is the username of the item's author. Author string `json:"by"` // URL of the story. URL string `json:"url"` // Title of the story in HTML. Title string `json:"title"` // Score of the story, or the votes for a pollopt. Score int64 `json:"score"` }
Story represens Hacker News story.
Click to show internal directories.
Click to hide internal directories.