middleware

package
v1.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchLimiter

type BatchLimiter struct {
	// contains filtered or unexported fields
}

func NewBatchLimiter

func NewBatchLimiter(batchLimit int) BatchLimiter

func (*BatchLimiter) Middleware

type IPRateLimiter added in v1.52.0

type IPRateLimiter struct {
	// contains filtered or unexported fields
}

func NewIPRateLimiter added in v1.52.0

func NewIPRateLimiter(r rate.Limit, b int) *IPRateLimiter

func (*IPRateLimiter) Middleware added in v1.52.0

func (i *IPRateLimiter) Middleware() gin.HandlerFunc

func (*IPRateLimiter) SetBurst added in v1.52.0

func (i *IPRateLimiter) SetBurst(b int)

func (*IPRateLimiter) SetRate added in v1.52.0

func (i *IPRateLimiter) SetRate(r rate.Limit)

func (*IPRateLimiter) Stop added in v1.52.0

func (i *IPRateLimiter) Stop()

Jump to

Keyboard shortcuts

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