Documentation ¶
Index ¶
- Variables
- func BoolPointer(b bool) *bool
- func FormatTweets(format string, tweets []Tweet)
- func FormatTweetsCSV(tweets []Tweet)
- func FormatTweetsJSON(tweets []Tweet)
- func GetTweets(w http.ResponseWriter, r *http.Request)
- func LimitReached(tweetLimit int, tweetStorage []Tweet) bool
- func Main(args *InputParser.Arguments)
- func NewRouter() *http.ServeMux
- func Request(args *InputParser.Arguments, cursor *string) io.ReadCloser
- func StartBackend() error
- type GetTweetsPostData
- type Tweet
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BoolPointer ¶
func FormatTweets ¶
func FormatTweetsCSV ¶
func FormatTweetsCSV(tweets []Tweet)
func FormatTweetsJSON ¶
func FormatTweetsJSON(tweets []Tweet)
func LimitReached ¶
LimitReached checks if the user specified a tweet limit, and if the tweet limit has been reached.
func Main ¶
func Main(args *InputParser.Arguments)
func Request ¶
func Request(args *InputParser.Arguments, cursor *string) io.ReadCloser
func StartBackend ¶
func StartBackend() error
Types ¶
type GetTweetsPostData ¶
type Tweet ¶
type Tweet struct { ID int URL string Text string Username string Fullname string Timestamp string }
func Scrape ¶
func Scrape(responseBody io.ReadCloser, args *InputParser.Arguments, cursor *string) (bool, []Tweet)
func ScrapeHandler ¶
func ScrapeHandler(responseBody io.ReadCloser, args *InputParser.Arguments, cursor *string) (bool, []Tweet)
Click to show internal directories.
Click to hide internal directories.