middlewares

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextKey is AuthMiddleware user context key
	ContextKey = "gostuser"
	// ErrPasswordMismatch is password mismatch error
	ErrPasswordMismatch = errors.New("Password mismatch user. ")
)

Functions

func AuthMiddleware

func AuthMiddleware(ctx iris.Context)

AuthMiddleware auth user, if failed response 401, success set user to context ContextKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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