httphelper

package
v0.0.12-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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