package middleware
import "github.com/labstack/echo/middleware"
Index ¶
- Variables
- func BasicAuth(ah AuthorizedHandler, uah UnauthorizedHandler, fn BasicAuthFunc) echo.HandlerFunc
- func JwtAuth(ah AuthorizedHandler, uah UnauthorizedHandler, fn JwtKeyFunc) echo.HandlerFunc
- func Logger(h echo.HandlerFunc) echo.HandlerFunc
- type AuthorizedHandler
- type BasicAuthFunc
- type Claims
- type JwtKeyFunc
- type UnauthorizedHandler
Variables ¶
var ( ErrBasicAuth = errors.New("echo: basic auth error") ErrJwtAuth = errors.New("echo: jwt auth error") )
Functions ¶
func BasicAuth ¶
func BasicAuth(ah AuthorizedHandler, uah UnauthorizedHandler, fn BasicAuthFunc) echo.HandlerFunc
func JwtAuth ¶
func JwtAuth(ah AuthorizedHandler, uah UnauthorizedHandler, fn JwtKeyFunc) echo.HandlerFunc
func Logger ¶
func Logger(h echo.HandlerFunc) echo.HandlerFunc
Types ¶
type AuthorizedHandler ¶
type AuthorizedHandler echo.HandlerFunc
type BasicAuthFunc ¶
type Claims ¶
type Claims map[string]interface{}
type JwtKeyFunc ¶
type UnauthorizedHandler ¶
Source Files ¶
- Version
- v0.0.5
- Published
- Apr 5, 2015
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 4 hours ago –
Tools for package owners.