gin

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorAuthTokenNotFound = errors.New(model.ErrAuthTokenNotFound)
View Source
var ErrorSessionInvalidUser = errors.New(model.ErrSessionInvalidUser)
View Source
var ErrorSessionWithoutAuth = errors.New(model.ErrSessionWithoutAuth)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL