rest

package
v0.0.0-...-8e9c4c1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: EPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteErrorResponse

func WriteErrorResponse(c *gin.Context, err error)

func WriteResponse

func WriteResponse(c *gin.Context, httpStatus int, message string)

Types

type HttpError

type HttpError struct {
	// contains filtered or unexported fields
}

func NewError

func NewError(code int, message string) HttpError

func (HttpError) Error

func (e HttpError) Error() string

Jump to

Keyboard shortcuts

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