You've already forked golang-base-project
Improves documentation (#13)
* Documents all env variables and adds an example project * Adds godoc comments * Fixed package naming issue
This commit is contained in:
@ -8,6 +8,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Throttle middleware takes a limit per minute and blocks any additional requests that go over this limit
|
||||
func Throttle(limit int) gin.HandlerFunc {
|
||||
store := memory.NewStore()
|
||||
|
||||
|
Reference in New Issue
Block a user