handlers

package
v0.0.0-...-bb77d14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PingHandler

func PingHandler(ctx *gin.Context)

Types

type CreateTweetBody

type CreateTweetBody struct {
	Message string `json:"message" binding:"required,max=280"`
}

type CreateUserBody

type CreateUserBody struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL