Most of the experimental handlers are ported to work with iris's handler form, from third-party sources.
|Middleware that provides easy and type-safe access to PostgreSQL database
|Middleware checks for a JWT on the
Authorization header on incoming requests and decodes it
|HTTP Access Control
|Middleware that implements a few quick security wins
|Generic middleware to rate-limit HTTP requests
|AWS cloudwatch metrics middleware
|Official New Relic Go Agent
|Easily create metrics endpoint for the prometheus instrumentation tool
|An authorization library that supports access control models like ACL, RBAC, ABAC
|sentry-go (ex. raven)
|Sentry client in Go
|Cross-Site Request Forgery Protection
|Rate limiting access to HTTP endpoints
Iris has its own middleware form of
func(ctx iris.Context) but it's also compatible with all
net/http middleware forms. See here.
Here's a small list of useful third-party handlers:
|OAuth, OAuth2 authentication. Example
|Cookies, users and permissions. Example
|Content Security Policy (CSP) support
|Add delays/latency to endpoints. Useful when testing effects of high latency
|Generate TinySVG, HTML and CSS on the fly
|Secure authentication for REST API endpoints
|Store information about your web application (response time, etc.)
|Configurable AWS-Style HMAC authentication middleware
|Middleware that handles Twitter Digits authentication
Feel free to put up your own middleware in this list!
Package logger provides request logging via middleware.
|Package logger provides request logging via middleware.
Package pprof provides native pprof support via middleware.
|Package pprof provides native pprof support via middleware.
Package rate implements rate limiter for Iris client requests.
|Package rate implements rate limiter for Iris client requests.
Package recover provides recovery for specific routes or for the whole app via middleware.
|Package recover provides recovery for specific routes or for the whole app via middleware.