Skip to content

purplecity/rust_rate_limit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

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:axum) as middleware

            rate_limiter_check().await //init rate limiter and start keys check
    
    	add_rule(pattern, limit, duration).await; // define you pattern at duration seconds can access limit time
    
    	token_access(key, pattern).await; //check your key token access with pattern
    

About

rust rate limit middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published