httphelper

package
v0.0.13-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-3.0 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, statusCode 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, 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