middleware

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CasbinAuth

func CasbinAuth() gin.HandlerFunc

CasbinAuth 用户权限验证

func CorsAuth added in v1.0.3

func CorsAuth() gin.HandlerFunc

CorsAuth 跨域中间件

func IpAuth

func IpAuth() gin.HandlerFunc

IpAuth 白名单验证

func LoginAuth

func LoginAuth() gin.HandlerFunc

LoginAuth 登录中间件

func ParamsActMatchFunc

func ParamsActMatchFunc(args ...interface{}) (interface{}, error)

ParamsActMatchFunc 自定义规则函数

func ParamsMatchFunc

func ParamsMatchFunc(args ...interface{}) (interface{}, error)

ParamsMatchFunc 自定义规则函数

func RequestIdAuth

func RequestIdAuth() gin.HandlerFunc

RequestIdAuth requestId中间件

Types

type CustomResponseWriter

type CustomResponseWriter struct {
	gin.ResponseWriter
	// contains filtered or unexported fields
}

func (CustomResponseWriter) Write

func (w CustomResponseWriter) Write(b []byte) (int, error)

func (CustomResponseWriter) WriteString

func (w CustomResponseWriter) WriteString(s string) (int, error)

Jump to

Keyboard shortcuts

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