http

package
v0.0.0-...-eecab09 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleErrorResponse

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

func SuccessResponse

func SuccessResponse(c *gin.Context, data interface{})

Types

type Response

type Response struct {
	Code  int         `json:"code"`
	Error string      `json:"error"`
	Data  interface{} `json:"data"`
}

Directories

Path Synopsis
v1
Package v1 implements routing paths.
Package v1 implements routing paths.

Jump to

Keyboard shortcuts

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