package middleware

import "github.com/labstack/echo/middleware"

Index

Variables

var (
	ErrBasicAuth = errors.New("echo: basic auth error")
	ErrJwtAuth   = errors.New("echo: jwt auth error")
)

Functions

func BasicAuth

func JwtAuth

func Logger

func Logger(h echo.HandlerFunc) echo.HandlerFunc

Types

type AuthorizedHandler

type AuthorizedHandler echo.HandlerFunc

type BasicAuthFunc

type BasicAuthFunc func(string, string) bool

type Claims

type Claims map[string]interface{}

type JwtKeyFunc

type JwtKeyFunc func(string) ([]byte, error)

type UnauthorizedHandler

type UnauthorizedHandler func(*echo.Context, error)

Source Files

auth.go logger.go

Version
v0.0.9
Published
Apr 15, 2015
Platform
windows/amd64
Imports
9 packages
Last checked
now

Tools for package owners.