Documentation ¶
Index ¶
- Constants
- func AuthRequired(signKey string) request.HandlerFunc
- func BasicAuth(accounts map[string]string) request.HandlerFunc
- func BasicAuthWithRealm(accounts map[string]string, realm 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, signKey string) 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 BasicAuthWithRealm ¶
func BasicAuthWithRealm(accounts map[string]string, realm string) request.HandlerFunc
func Locale ¶
func Locale() request.HandlerFunc
func Logger ¶
func Logger() request.HandlerFunc
func Recovery ¶
func Recovery() request.HandlerFunc
func RequestLogger ¶
func RequestLogger() request.HandlerFunc
Types ¶
type TokenRevokeError ¶
type TokenRevokeError struct{}
func (TokenRevokeError) Error ¶
func (e TokenRevokeError) Error() string
Click to show internal directories.
Click to hide internal directories.