middleware

package
v0.0.0-...-cb65031 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLog

func AccessLog() gin.HandlerFunc

func AppInfo

func AppInfo() gin.HandlerFunc

func CSRF

func CSRF(authKey []byte, domain string) gin.HandlerFunc

func CircuitBreaker

func CircuitBreaker() gin.HandlerFunc

func ContextTimeout

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

func Cors

func Cors() gin.HandlerFunc

func Cron

func Cron(db *gorm.DB) gin.HandlerFunc

func JWT

func JWT() gin.HandlerFunc

func RateLimiter

func RateLimiter(l limiter.BaseLimiter) gin.HandlerFunc

func Recovery

func Recovery() gin.HandlerFunc

func Redis

func Redis() gin.HandlerFunc

func Tracing

func Tracing() 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)

Write writes twice to get the data from body

Jump to

Keyboard shortcuts

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