Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillStream ¶
Fills a channel with data from the Twitter gardenhose.
func TweetToJSON ¶
Converts a Tweet struct into a Twitter JSON object
Types ¶
type Tweet ¶
type Tweet struct { Id int64 `json:"id"` Text string `json:"text"` Coordinates interface{} `json:"coordinates"` Created_at_str string `json:"created_at"` Lang string `json:"lang"` Timestamp int64 Entities struct { Hashtags []struct { Text string Indices []int } `json:"hashtags"` Urls []struct { Url string Display_url string Expanded_url string Indices []int } `json:"urls"` User_mentions []struct { Id int Screen_name string Name string Indices []int } `json:"user_mentions"` Media []struct { Media_url_https string Media_url string } `json:"media"` } `json:"entities"` Place interface{} `json:"place"` User struct { Statuses_count int Name string Description string Location string Verified bool Followers_count int Profile_image_url_https string Url string Screen_name string Friends_count int Created_at string Id uint64 } `json:"user"` Retweeted_status interface{} }
func JSONtoTweet ¶
Converts a Twitter JSON object into a Tweet struct
Click to show internal directories.
Click to hide internal directories.