Back to godoc.org

Package middlewares

v0.4.4
Latest Go to latest

The highest tagged major version is .

Published: May 22, 2020 | License: MIT | Module: github.com/mdouchement/standardfile

Index

Constants

const CurrentUserContextKey = "current_user"

CurrentUserContextKey is the key to retrieve the current_user from echo.Context.

func CurrentUser

func CurrentUser(db database.Client) echo.MiddlewareFunc

CurrentUser checks current_user based on JWT and store it into echo.Context.

func HTTPErrorHandler

func HTTPErrorHandler(err error, c echo.Context)

HTTPErrorHandler is a middleware that formats rendered errors.

func NewBinder

func NewBinder() echo.Binder

NewBinder returns a wrapp of the default binder implementation with extra checks.

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

Jump to identifier

Keyboard shortcuts

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