middleware

package
v0.0.0-...-2381096 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

*

  • 后台登录验证中间件
  • @author mwq
  • @since 2021/8/20
  • @File : checkauth

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLog

func AccessLog() gin.HandlerFunc

func AdminAuth

func AdminAuth() gin.HandlerFunc

func AppInfo

func AppInfo() gin.HandlerFunc

func ContextTimeout

func ContextTimeout(t time.Duration) func(c *gin.Context)

func Cors

func Cors() gin.HandlerFunc

func JWT

func JWT() gin.HandlerFunc

func RateLimiter

func RateLimiter(l limiter.LimiterIface) gin.HandlerFunc

func Recovery

func Recovery() gin.HandlerFunc

func Tracer

func Tracer() func(c *gin.Context)

func Translations

func Translations() gin.HandlerFunc

Types

type AccessLogWriter

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

func (AccessLogWriter) Write

func (w AccessLogWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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