mdws

package
v2.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinRateLimit added in v2.3.6

func GinRateLimit(switchName, rateName string) gin.HandlerFunc

func GinRecovery

func GinRecovery() gin.HandlerFunc

Types

type RateLimiter added in v2.3.6

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

func NewRateLimiter added in v2.3.6

func NewRateLimiter(switchName, rateName string) *RateLimiter

func (*RateLimiter) Take added in v2.3.6

func (r *RateLimiter) Take() (bool, int, time.Duration)

Jump to

Keyboard shortcuts

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