# tollbooth_iris **Repository Path**: mirrors_didip/tollbooth_iris ## Basic Information - **Project Name**: tollbooth_iris - **Description**: Tollbooth - Iris integration layer - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## tollbooth_iris [Iris](https://github.com/kataras/iris) middleware for rate limiting HTTP requests. ## Five Minutes Tutorial ``` package main import ( "time" "github.com/didip/tollbooth" "github.com/didip/tollbooth_iris" "gopkg.in/kataras/iris.v6" "gopkg.in/kataras/iris.v6/adaptors/httprouter" ) func main() { app := iris.New() app.Adapt( httprouter.New() ) // Create a limiter struct. limiter := tollbooth.NewLimiter(1, nil) app.Get("/", tollbooth_iris.LimitHandler(limiter), func(ctx *iris.Context) { ctx.WriteString("Hello, world!") }) app.Listen(":8080") } ```