middleware

package
v0.0.0-...-1bafb4f Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 11 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 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 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