controller

package
v0.0.0-...-e1bbea1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateComment

func CreateComment(c *gin.Context)

func CreatePost

func CreatePost(c *gin.Context)

func FetchPosts

func FetchPosts(c *gin.Context)

func Index

func Index(c *gin.Context)

func RegisterEndpoint

func RegisterEndpoint(c *gin.Context)

func SearchAllPost

func SearchAllPost(c *gin.Context)

func UpdatePost

func UpdatePost(c *gin.Context)

func UpdateUser

func UpdateUser(c *gin.Context)

Types

type CommentRequest

type CommentRequest struct {
	Content string `json:"content"`
}

type PostRequest

type PostRequest struct {
	Title   string `json:"title"`
	Content string `json:"content"`
}

type RegisterRequest

type RegisterRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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