Skip to content

sudoplox/ratelimit-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratelimit-go

cd into the folder

eg:

cd per-client-rate-limiting

To run the server

go run .

To test

$ for i in {1..6}; do curl http://localhost:8080/ping; done

 {"status":"Successful","body":"Hi youve reached the ApAPI"}
 {"status":"Successful","body":"Hi youve reached the ApAPI"}
 {"status":"Successful","body":"Hi youve reached the ApAPI"}
 {"status":"Successful","body":"Hi youve reached the ApAPI"}
 {"status":"Request Failed","body":"The API is at capacity, please try again later."}
 {"status":"Request Failed","body":"The API is at capacity, please try again later."}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages