cecho

package
v0.0.0-...-950d083 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyBody = errors.New("request body does not contain json")
	ErrReadBody  = errors.New("failed reading request body")
	ErrCloseBody = errors.New("failed closing request body")
)

Functions

func Handler

func Handler(hf HandlerFunc) echo.HandlerFunc

func NewContextMiddleware

func NewContextMiddleware() echo.MiddlewareFunc

func NewHTTPErrorHandler

func NewHTTPErrorHandler(e *echo.Echo) echo.HTTPErrorHandler

Types

type HandlerFunc

type HandlerFunc func(ctx *ccontext) error

Jump to

Keyboard shortcuts

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