middleware

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIMetric

func APIMetric() gin.HandlerFunc

APIMetric is middleware use api metric

func Throttle

func Throttle(limit limiter.Limit, signatureFuncs ...RequestSignatureFunc) gin.HandlerFunc

Throttle middleware

Types

type RequestSignatureFunc

type RequestSignatureFunc func(c *gin.Context) string

RequestSignatureFunc define an function to generate an signature of request

Jump to

Keyboard shortcuts

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