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 ¶
AuthMiddleware auth user, if failed response 401, success set user to context ContextKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.