Skip to content

purplecity/rate_limit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  • Supports creating custom rules in any mode.
  • Implemented using a memory token bucket.
  • easy use. u can add and any web server(eg:gin) as middleware
	Init_rate_limit(keys_check_minute, keys_check num) //init rate limiter and start keys check

	AppAddRule(pattern, limit, duration) // define you pattern at duration seconds can access limit time

	AppTokenAccess(key, pattern) //check your key token access with pattern

About

golang rate limit middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages