middleware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogging

func AccessLogging(c *gin.Context)

func AuthRequired

func AuthRequired(c *gin.Context)

func CustomRecovery

func CustomRecovery(c *gin.Context)

func FilterUrl

func FilterUrl(url string) bool

func GetIP

func GetIP(r *http.Request) string

GetIP 获取连接ip

func GetMeshClient

func GetMeshClient(r *http.Request) string

func GuestRequired

func GuestRequired(c *gin.Context)

func Instrument

func Instrument(c *gin.Context)

func TokenRequired

func TokenRequired(c *gin.Context)

func Trace

func Trace(c *gin.Context)

Types

type TokenReq

type TokenReq struct {
	Token string `form:"token" json:"token"` // token有效
}

Jump to

Keyboard shortcuts

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