functions

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(c *gin.Context, err customerrors.BaseErrorInterface)

HandleError handles the given error and sends a JSON response with the error details.

func HandleErrorWithHttpStatus

func HandleErrorWithHttpStatus(c *gin.Context, httpStatus int, err error)

func ParsePaginationParams

func ParsePaginationParams(c *gin.Context) (*types.Pagination, error)

func ValidateToken

func ValidateToken(tokenString string) (*types.UserClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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