Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionUser ¶
func GetSessionUser(ctx *gin.Context) (*model.SessionUser, error)
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor() *AuthInterceptor
func NewAuthInterceptorWithCustomParser ¶
func NewAuthInterceptorWithCustomParser(jwtToken itbasisJwtToken.JwtToken) *AuthInterceptor
func (*AuthInterceptor) AuthHandler ¶
func (receiver *AuthInterceptor) AuthHandler() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.