httphelper

package
v0.0.0-...-a383e5c Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CErrResponse

func CErrResponse(c *gin.Context, status int, customStatusCode int, errMessage string)

func ErrResponse

func ErrResponse(c *gin.Context, statusCode int, errMessage string)

TODO: add method for internet error with common msg

func InternalServerError

func InternalServerError(c *gin.Context)

func NewInternalServerError

func NewInternalServerError(c *gin.Context, message string, format string, args ...interface{})

func SuccessResponse

func SuccessResponse(c *gin.Context, message string, payload interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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