Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationMiddleware ¶
type AuthorizationMiddleware struct {
// contains filtered or unexported fields
}
A middleware that checks for a valid session and passes the authorization status as well as the user to the next middleware/handler.
type TokenMiddleware ¶
type TokenMiddleware struct {
// contains filtered or unexported fields
}
A middleware that checks for an authorization header and extracts the token in it.
The token is then validated and if it's valid, the authorization middleware is skipped.
Click to show internal directories.
Click to hide internal directories.