Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PingHandler ¶
Types ¶
type CreateTweetBody ¶
type CreateTweetBody struct {
Message string `json:"message" binding:"required,max=280"`
}
type CreateUserBody ¶
type TweetHandler ¶
type TweetHandler struct {
// contains filtered or unexported fields
}
func NewTweetHandler ¶
func NewTweetHandler(service services.TweetService) *TweetHandler
func (*TweetHandler) CreateTweet ¶
func (h *TweetHandler) CreateTweet(ctx *gin.Context)
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
func NewUserHandler ¶
func NewUserHandler(service services.UserService) *UserHandler
func (UserHandler) Create ¶
func (h UserHandler) Create(ctx *gin.Context)
func (UserHandler) FollowUser ¶
func (h UserHandler) FollowUser(ctx *gin.Context)
func (UserHandler) Get ¶
func (h UserHandler) Get(ctx *gin.Context)
func (UserHandler) GetUserTimeline ¶
func (h UserHandler) GetUserTimeline(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.