middleware

package
v0.0.0-...-c234f5e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginJWTMiddleware

type LoginJWTMiddleware interface {
	CheckLoginJWT() gin.HandlerFunc
	SetIgnorePaths(paths ...string) LoginJWTMiddleware
}

type LoginJWTMiddlewareBuilder

type LoginJWTMiddlewareBuilder struct {
	// contains filtered or unexported fields
}

func NewLoginJWTMiddlewareBuilder

func NewLoginJWTMiddlewareBuilder() *LoginJWTMiddlewareBuilder

func (*LoginJWTMiddlewareBuilder) CheckLoginJWT

func (ljmb *LoginJWTMiddlewareBuilder) CheckLoginJWT() gin.HandlerFunc

func (*LoginJWTMiddlewareBuilder) SetIgnorePaths

func (ljmb *LoginJWTMiddlewareBuilder) SetIgnorePaths(paths ...string) LoginJWTMiddleware

type LoginMiddleware

type LoginMiddleware interface {
	CheckLogin() gin.HandlerFunc
	SetIgnorePaths(paths ...string) LoginMiddleware
}

type LoginMiddlewareBuilder

type LoginMiddlewareBuilder struct {
	// contains filtered or unexported fields
}

func NewLoginMiddlewareBuilder

func NewLoginMiddlewareBuilder() *LoginMiddlewareBuilder

func (*LoginMiddlewareBuilder) CheckLogin

func (lmb *LoginMiddlewareBuilder) CheckLogin() gin.HandlerFunc

CheckLogin 检查用户是否登录(除了 login 和 signup 之外的路径)

func (*LoginMiddlewareBuilder) SetIgnorePaths

func (lmb *LoginMiddlewareBuilder) SetIgnorePaths(paths ...string) LoginMiddleware

Jump to

Keyboard shortcuts

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