package ratelimit
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ratelimit
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class Config(host: String, port: Int, maxTokens: Long, timeWindowInSec: Long) extends Product with Serializable
- case class RedisConnectionError(msg: String) extends Exception with RedisRateLimitError with Product with Serializable
- sealed trait RedisRateLimitError extends Exception
Value Members
- def rateLimited[F[_], A](fa: F[A], key: String, maxTokens: Long, timeWindowInSec: Long)(implicit redisClient: RedisClient, F: Sync[F]): F[A]
- def rateLimited[F[_], A](fa: F[A], key: String)(implicit config: Config, F: Sync[F]): F[A]
- object RateLimitExceeded extends Exception with RedisRateLimitError