httputil

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondBadRequest

func RespondBadRequest(c *gin.Context, msg string)

func RespondConflict

func RespondConflict(c *gin.Context, msg string)

func RespondCreated

func RespondCreated(c *gin.Context, data any)

func RespondError

func RespondError(c *gin.Context, status int, msg string)

func RespondForbidden

func RespondForbidden(c *gin.Context, msg string)

func RespondInternalError

func RespondInternalError(c *gin.Context)

func RespondNoContent

func RespondNoContent(c *gin.Context)

func RespondNotFound

func RespondNotFound(c *gin.Context, msg string)

func RespondOK

func RespondOK(c *gin.Context, data any)

func RespondServiceUnavailable

func RespondServiceUnavailable(c *gin.Context, msg string)

func RespondUnauthorized

func RespondUnauthorized(c *gin.Context, msg string)

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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