Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HNScraper ¶
type HNScraper struct {
// contains filtered or unexported fields
}
func (*HNScraper) FetchItems ¶
type Hits ¶
type Hits struct { // HighlightResult HighlightResult `json:"_highlightResult,omitempty"` Tags []string `json:"_tags"` Author string `json:"author"` // Children []int `json:"children,omitempty"` CreatedAt time.Time `json:"created_at"` CreatedAtI int `json:"created_at_i"` NumComments int `json:"num_comments,omitempty"` ObjectID string `json:"objectID"` Points int `json:"points,omitempty"` StoryID int `json:"story_id,omitempty"` StoryText string `json:"story_text,omitempty"` Title string `json:"title"` UpdatedAt time.Time `json:"updated_at"` URL string `json:"url"` }
type Item ¶
type Item struct { Type string `json:"type"` Children []Item `json:"children"` ObjectID int `json:"id"` Points int `json:"points,omitempty"` StoryID int `json:"story_id,omitempty"` Title string `json:"title"` URL string `json:"url"` }
func (*Item) NumComments ¶
type SearchResult ¶
type SearchResult struct { // Exhaustive Exhaustive `json:"exhaustive"` // ExhaustiveNbHits bool `json:"exhaustiveNbHits"` // ExhaustiveTypo bool `json:"exhaustiveTypo"` Hits []Hits `json:"hits"` // HitsPerPage int `json:"hitsPerPage"` // NbHits int `json:"nbHits"` // NbPages int `json:"nbPages"` // Page int `json:"page"` // Params string `json:"params"` ProcessingTimeMS int `json:"processingTimeMS"` // ProcessingTimingsMS ProcessingTimingsMS `json:"processingTimingsMS"` // Query string `json:"query"` ServerTimeMS int `json:"serverTimeMS"` }
Click to show internal directories.
Click to hide internal directories.