middleware

package
v0.0.0-...-4e8f025 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors() gin.HandlerFunc

func LimitAverageRoute

func LimitAverageRoute(limit int64) gin.HandlerFunc

*

  • @description: 平均时间限流
  • @param {int} limit

func LimitRoute

func LimitRoute(limit int64) gin.HandlerFunc

*

  • @description: 次数限流
  • @param {int64} limit
  • @return {*}

Types

This section is empty.

Jump to

Keyboard shortcuts

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