ServiceRateLimiter<Id> constructor

ServiceRateLimiter<Id>(
  1. int maxPointsPerWindow,
  2. Duration windowDuration,
  3. Service<Id, Map<String, dynamic>> service,
  4. FutureOr<Id> getId(
    1. RequestContext,
    2. ResponseContext
    ), {
  5. String? errorMessage,
})

Implementation

ServiceRateLimiter(
    super.maxPointsPerWindow, super.windowDuration, this.service, this.getId,
    {super.errorMessage});