tide-governor

A [tide] middleware that provides rate-limiting functionality backed by [governor]

Example

```rust use tide_governor::GovernorMiddleware; use std::env;

[async_std::main]

async fn main() -> tide::Result<()> { let mut app = tide::new(); app.at("/") .with(GovernorMiddleware::perminute(4)?) .get(|| async move { todo!() }); app.at("/foo/:bar") .with(GovernorMiddleware::perhour(360)?) .put(|| async move { todo!() });

app.listen(format!("http://localhost:{}", env::var("PORT")?))
    .await?;
Ok(())

} ```