Documentation
¶
Index ¶
- type Auth
- func (a *Auth) AppAuthMiddleware() gin.HandlerFunc
- func (a *Auth) GetAppUsedID(c *gin.Context) (userID uint, err error)
- func (a *Auth) GetJwtUserInfo(c *gin.Context, key string) (iVal interface{}, err error)
- func (a *Auth) GetUserIDMiddleware() gin.HandlerFunc
- func (a *Auth) NewAppJwt(uid uint, isAdminLogin ...bool) (string, error)
- type JWToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) AppAuthMiddleware ¶
func (a *Auth) AppAuthMiddleware() gin.HandlerFunc
func (*Auth) GetJwtUserInfo ¶
func (*Auth) GetUserIDMiddleware ¶
func (a *Auth) GetUserIDMiddleware() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.