Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTweetsOptions ¶
func GenerateTweetsOptions(vls v1.TweetsURLValues) storage.TweetsOptions
func ValidateTweetsURLValues ¶
func ValidateTweetsURLValues(vls v1.TweetsURLValues) error
ValidateTweetsURLValues validates the tweets URL values.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a web server.
func (*Server) ListTweets ¶
func (srv *Server) ListTweets(w http.ResponseWriter, r *http.Request)
ListTweets handles the tweets endpoint. @Summary User tweets @Description Get all the tweets of a twitter user or the tweets in a specific time span. @Tags Tweets @ID list-tweets @Produce json @Param user path string true "User" @Param before_time query string false "tweets before specific date" @Param after_time query string false "tweets after specific date" @Success 200 {object} v1.TweetsResponse @Failure 400 {object} v1.ErrorResponse @Failure 404 {object} v1.ErrorResponse @Failure 500 {object} v1.ErrorResponse @Router /tweets/v1/user/{user} [get]
Click to show internal directories.
Click to hide internal directories.