Back to godoc.org

Package middleware

v1.5.7
Latest Go to latest

The highest tagged major version is .

Published: Oct 21, 2020 | License: Apache-2.0 | Module: github.com/sunmi-OS/gocore

Index

func Recover

func Recover(msg ...string) echo.MiddlewareFunc

Recover returns a middleware which recovers from panics anywhere in the chain and handles the control to the centralized HTTPErrorHandler.

func RecoverWithConfig

func RecoverWithConfig(config echoMiddleware.RecoverConfig) echo.MiddlewareFunc

RecoverWithConfig returns a Recover middleware with config. See: `Recover()`.

func SetReturnMsg

func SetReturnMsg(msg string)

type Param

type Param struct {
	Time  string      `json:"time"`
	Url   string      `json:"url"`
	Err   string      `json:"error"`
	Query interface{} `json:"query"`
	Stack string      `json:"stack"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier