middleware

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTEXT_TOKEN_KEY = "TOTOVAL_CONTEXT_TOKEN"
)

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired(signKey string) request.HandlerFunc

func IUser added in v0.9.3

func IUser(userModelPtr auth.IUser) request.HandlerFunc

func Locale added in v0.2.0

func Locale() request.HandlerFunc

func Logger added in v0.9.0

func Logger() request.HandlerFunc

func Policy added in v0.9.0

func Policy(_policy policy.Policier, action policy.Action) request.HandlerFunc

func Recovery added in v0.9.0

func Recovery() request.HandlerFunc

func RequestLogger added in v0.2.0

func RequestLogger() request.HandlerFunc

func Revoke added in v0.3.0

func Revoke(c *request.Context) error

func Throttle added in v0.3.1

func Throttle(maxAttempts uint, decayMinutes uint) request.HandlerFunc

Types

type TokenRevokeError added in v0.3.0

type TokenRevokeError struct{}

func (TokenRevokeError) Error added in v0.3.0

func (e TokenRevokeError) Error() string

Jump to

Keyboard shortcuts

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