handler

package
v0.0.0-...-b164c1a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRequestBodySize  = 1 << 20 / 2 // 0.5 MB
	MaxResponseBodySize = 100 << 20   // 100 MB
)

Variables

This section is empty.

Functions

func AnyHandler

func AnyHandler(c *gin.Context)

func CheckHeader

func CheckHeader(c *gin.Context)

func CustomLoggerMiddleware

func CustomLoggerMiddleware(c *gin.Context)

func CustomRecoveryMiddleware

func CustomRecoveryMiddleware(c *gin.Context)

func LimitMiddleware

func LimitMiddleware(c *gin.Context)

func LimitMiddleware2

func LimitMiddleware2(ip string, pass bool, count int, res *types.LimitResponse, h string) (bool, func(string))

func SetMaxRequestBodySize

func SetMaxRequestBodySize(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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