handlers

package
v0.0.0-...-3c40ba8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundHTTPStatusError = errors.New("NotFoundHTTPStatusError")

Functions

func CreatePostHandle

func CreatePostHandle(c *fiber.Ctx) error

CreatePostHandle handle create a new post

func DeletePostHandle

func DeletePostHandle(c *fiber.Ctx) error

DeletePostHandle handle delete a post

func DisableCommentHandle

func DisableCommentHandle(c *fiber.Ctx) error

DisableCommentHandle disble post's commnet

func DisableSharingHandle

func DisableSharingHandle(c *fiber.Ctx) error

DisableSharingHandle disble post's sharing

func GeneratePostURLKeyHandle

func GeneratePostURLKeyHandle(c *fiber.Ctx) error

GeneratePostURLKeyHandle handle get post URL key

func GetPostByURLKeyHandle

func GetPostByURLKeyHandle(c *fiber.Ctx) error

GetPostByURLKeyHandle handle get a post

func GetPostHandle

func GetPostHandle(c *fiber.Ctx) error

GetPostHandle handle get a post

func IncrementCommentHandle

func IncrementCommentHandle(c *fiber.Ctx) error

IncrementCommentHandle handle create a new post

func IncrementScoreHandle

func IncrementScoreHandle(c *fiber.Ctx) error

IncrementScoreHandle handle create a new post

func InitPostIndexHandle

func InitPostIndexHandle(c *fiber.Ctx) error

InitPostIndexHandle handle create a new post

func QueryPostHandle

func QueryPostHandle(c *fiber.Ctx) error

QueryPostHandle handle query on post

func StringRand

func StringRand(length int) string

StringRand

func StringWithCharset

func StringWithCharset(length int, charset string) string

func UpdatePostHandle

func UpdatePostHandle(c *fiber.Ctx) error

UpdatePostHandle handle create a new post

func UpdatePostProfileHandle deprecated

func UpdatePostProfileHandle(c *fiber.Ctx) error

Deprecated: UpdatePostProfileHandle

Types

type PostQueryModel

type PostQueryModel struct {
	Search string      `query:"search"`
	Page   int64       `query:"page"`
	Owner  []uuid.UUID `query:"owner"`
	Type   int         `query:"type"`
}

Jump to

Keyboard shortcuts

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