Documentation ¶
Index ¶
- Constants
- func AuthRequired(signKey string) request.HandlerFunc
- func IUser(userModelPtr auth.IUser) request.HandlerFunc
- func Locale() request.HandlerFunc
- func Logger() request.HandlerFunc
- func Policy(_policy policy.Policier, action policy.Action) request.HandlerFunc
- func Recovery() request.HandlerFunc
- func RequestLogger() request.HandlerFunc
- func Revoke(c *request.Context) error
- func Throttle(maxAttempts uint, decayMinutes uint) request.HandlerFunc
- type TokenRevokeError
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 Locale ¶ added in v0.2.0
func Locale() request.HandlerFunc
func Logger ¶ added in v0.9.0
func Logger() request.HandlerFunc
func Recovery ¶ added in v0.9.0
func Recovery() request.HandlerFunc
func RequestLogger ¶ added in v0.2.0
func RequestLogger() 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
Click to show internal directories.
Click to hide internal directories.