Directories
¶
| Path | Synopsis |
|---|---|
|
Package accesslog logs one line per request, in a text, CSV, JSON or custom template format, to one or more destinations.
|
Package accesslog logs one line per request, in a text, CSV, JSON or custom template format, to one or more destinations. |
|
Package apikey guards routes with a shared secret that a caller presents on every request, which is how services, cron jobs and webhooks authenticate to each other when there is no user to sign in.
|
Package apikey guards routes with a shared secret that a caller presents on every request, which is how services, cron jobs and webhooks authenticate to each other when there is no user to sign in. |
|
Package basicauth implements HTTP Basic Authentication (RFC 7617).
|
Package basicauth implements HTTP Basic Authentication (RFC 7617). |
|
Package bodylimit caps the size of a request body.
|
Package bodylimit caps the size of a request body. |
|
Package cache sets client- and proxy-cache headers (Cache-Control, ETag, Last-Modified, Expires, Pragma, Vary, Proxy-Authenticate) on the response.
|
Package cache sets client- and proxy-cache headers (Cache-Control, ETag, Last-Modified, Expires, Pragma, Vary, Proxy-Authenticate) on the response. |
|
httpcache
Package httpcache provides a middleware for caching HTTP responses in DragonflyDB or Redis.
|
Package httpcache provides a middleware for caching HTTP responses in DragonflyDB or Redis. |
|
Package compress negotiates gzip, deflate, brotli, snappy, s2 and zstd for the response and transparently decompresses a compressed request body.
|
Package compress negotiates gzip, deflate, brotli, snappy, s2 and zstd for the response and transparently decompresses a compressed request body. |
|
Package cors implements Cross-Origin Resource Sharing.
|
Package cors implements Cross-Origin Resource Sharing. |
|
Package counter counts requests (or anything else) with an atomic, generic-typed counter.
|
Package counter counts requests (or anything else) with an atomic, generic-typed counter. |
|
Package geolocation resolves the client's IP address to a country, region and city (and, optionally, the country's main language).
|
Package geolocation resolves the client's IP address to a country, region and city (and, optionally, the country's main language). |
|
Package grpc serves a gRPC (or gRPC-Web) server through an Iris route.
|
Package grpc serves a gRPC (or gRPC-Web) server through an Iris route. |
|
Package hcaptcha verifies the hCaptcha answer that a form submission carries.
|
Package hcaptcha verifies the hCaptcha answer that a form submission carries. |
|
Package httpcost measures the CPU, memory and time cost of serving a request.
|
Package httpcost measures the CPU, memory and time cost of serving a request. |
|
Package i18n provides internalization and localization features for Iris.
|
Package i18n provides internalization and localization features for Iris. |
|
Package ipaccess allows or blocks requests by the client's IP address, given as literals, CIDR blocks or ranges.
|
Package ipaccess allows or blocks requests by the client's IP address, given as literals, CIDR blocks or ranges. |
|
Package jwt signs and verifies JSON Web Tokens.
|
Package jwt signs and verifies JSON Web Tokens. |
|
Package methodoverride lets clients that cannot issue PUT, PATCH or DELETE send a POST carrying the intended method instead.
|
Package methodoverride lets clients that cannot issue PUT, PATCH or DELETE send a POST carrying the intended method instead. |
|
Package modrevision serves the build information of the running binary (module version, VCS revision, build time) on a route.
|
Package modrevision serves the build information of the running binary (module version, VCS revision, build time) on a route. |
|
Package monitor reports live process and system statistics (CPU, memory, goroutines, uptime) as JSON and as a small HTML dashboard.
|
Package monitor reports live process and system statistics (CPU, memory, goroutines, uptime) as JSON and as a small HTML dashboard. |
|
Package pprof provides native pprof support via middleware.
|
Package pprof provides native pprof support via middleware. |
|
Package rate implements a token-bucket rate limiter for incoming requests, one bucket per client.
|
Package rate implements a token-bucket rate limiter for incoming requests, one bucket per client. |
|
Package recaptcha verifies the Google reCAPTCHA answer that a form submission carries.
|
Package recaptcha verifies the Google reCAPTCHA answer that a form submission carries. |
|
Package recorder keeps a copy of the request body, the response body, or both, so that a later handler can read them again.
|
Package recorder keeps a copy of the request body, the response body, or both, so that a later handler can read them again. |
|
Package recovery turns a panic in a handler into a 500 response instead of a crashed server.
|
Package recovery turns a panic in a handler into a 500 response instead of a crashed server. |
|
Package referrer parses the request's Referer header into its source type (direct, search, social, email or indirect) and stores it on the Context.
|
Package referrer parses the request's Referer header into its source type (direct, search, social, email or indirect) and stores it on the Context. |
|
Package requestid assigns an ID to every request and exposes it through Context.ID, the "X-Request-Id" header and the `Get` function.
|
Package requestid assigns an ID to every request and exposes it through Context.ID, the "X-Request-Id" header and the `Get` function. |
|
Package rewrite redirects or rewrites requests according to a list of regular-expression rules, and can force a primary subdomain such as "www".
|
Package rewrite redirects or rewrites requests according to a list of regular-expression rules, and can force a primary subdomain such as "www". |
|
Package servertiming provides middleware for the Iris Web Framework to add Server-Timing headers to HTTP responses.
|
Package servertiming provides middleware for the Iris Web Framework to add Server-Timing headers to HTTP responses. |
|
Package sessions provides typed HTTP sessions backed by a cookie, Redis or a SQL database.
|
Package sessions provides typed HTTP sessions backed by a cookie, Redis or a SQL database. |
|
_example
command
|
|
|
Package versioning routes a request to a handler by the API version it asks for, through the Accept-Version header, the Accept header or a custom source.
|
Package versioning routes a request to a handler by the API version it asks for, through the Accept-Version header, the Accept header or a custom source. |
|
Package view registers a template engine so that Render, WithTemplate and Context.Render can render its templates.
|
Package view registers a template engine so that Render, WithTemplate and Context.Render can render its templates. |
|
Package websocket bridges the neffos websocket server with Iris.
|
Package websocket bridges the neffos websocket server with Iris. |
Click to show internal directories.
Click to hide internal directories.