httpmiddleware

package
v0.0.0-...-d2b7790 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONResponseHandler

func JSONResponseHandler(next echo.HandlerFunc) echo.HandlerFunc

Types

type JSONContext

type JSONContext struct {
	echo.Context
}

func (*JSONContext) JSON

func (c *JSONContext) JSON(code int, data interface{}) error

type JSONResponse

type JSONResponse struct {
	Code int         `json:"code"`
	Data interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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