There are three ways to initialize a "Limit", which are "PerSecond(rate int)", "PerMinute(rate int)", "PerHour(rate int)". But the Limit generated by these three functions,the values of its "Rate" and "Burst" fields are equal。So I'd like to create a few more functions that initialize the LIMIT, which can specify the "rate" field and the "burst" field separately。
The Limit is public, so you can configure it in your code to suit any needs. I don't think it's possible (or necessary) to cover every single case in a package.
There are three ways to initialize a "Limit", which are "PerSecond(rate int)", "PerMinute(rate int)", "PerHour(rate int)". But the Limit generated by these three functions,the values of its "Rate" and "Burst" fields are equal。So I'd like to create a few more functions that initialize the LIMIT, which can specify the "rate" field and the "burst" field separately。