cmiddleware

package
v0.0.0-...-4092974 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPErrorHandler

func HTTPErrorHandler(err error, c echo.Context)

func NewContext

func NewContext() echo.MiddlewareFunc

Types

type Context

type Context struct {
	echo.Context
	// contains filtered or unexported fields
}

func (*Context) Body

func (ctx *Context) Body() string

func (*Context) BodyGJson

func (ctx *Context) BodyGJson() (*gjson.Result, error)

func (*Context) BodyJson

func (ctx *Context) BodyJson() ([]byte, error)

func (*Context) BodyMap

func (ctx *Context) BodyMap() (map[string]interface{}, error)

func (*Context) JSONS

func (ctx *Context) JSONS(code int, json string) error

func (*Context) RequestContext

func (ctx *Context) RequestContext() context.Context

Jump to

Keyboard shortcuts

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