Features section describes in detail about service capabilities
Send emails of different type with a rate limit associated per user and per type:
- Status type: not more than 2 per minute for each recipient
- News type: not more than 1 per day for each recipient
- Marketing type: not more than 1 per day for each recipient
There's a coverage.sh file that runs every test in the project located at bin/coverage.sh and needs permissions to run. It can be easily done executing the following command:
chmod +x coverage.sh
Now you can execute the file in the terminal
To update the Open API specification, follow these steps:
-
Write annotations in the code using the Swag API operation format
-
install go swag locally. Follow swaggo's getting started
-
Run the following command to generate/update the Open API specification:
swag init -
Run the golang-rate-limit service and navigate to the following URL to view the Open API Specification:
http://localhost:8080/v1/docs/index.html
You will see the OAS with Swagger UI
- Email: [email protected]