middleware

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Jump to

Keyboard shortcuts

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