Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Initializer ¶
Initializer -- represents the kind of requests that we want to fetch
func (Initializer) GetCodesStory ¶
func (init Initializer) GetCodesStory() ([]int, error)
GetCodesStory -- Return the ids of a story
func (Initializer) GetPostStory ¶
func (init Initializer) GetPostStory(codes []int) ([]Post, error)
GetPostStory -- Return the posts of story thanks their ids
type Post ¶
type Post struct { Id int `json:"id"` Deleted bool `json:"deleted"` Type string `json:"type"` By string `json:"by"` Time int `json:"time"` Text string `json:"text"` Dead bool `json:"dead"` Parent int `json:"parent"` Poll int `json:"poll"` Kids []int `json:"kids"` Url string `json:"url"` Score int `json:"score"` Title string `json:"title"` Parts []int `json:"parts"` Descendants int `json:"descendants"` }
Post -- represents the json object returned by the API
Click to show internal directories.
Click to hide internal directories.