Go Middlewares is a packages repository, developed in Golang, that aggregates standard middlewares that are commonly used by different applications.
JWT is a middleware for handling JSON Web Tokens (JWT) to securely authenticate and authorize HTTP and HTTPS requests, ensuring that only valid and properly signed tokens are processed for access control and user verification.
CORS is a middleware responsible for handling Cross-Origin Resource Sharing (CORS) policies by allowing or blocking HTTP requests based on their origin.
Logger is a middleware responsible for logging HTTP request data, including the request method, URL, and remote address. It helps track incoming requests and provides useful debugging information.
Prometheus is a middleware designed for monitoring HTTP requests by collecting key metrics such as request count, response duration, and status codes. It enables seamless integration with Prometheus for real-time performance tracking and observability.
Loki is a middleware responsible for logging HTTP request data to a Loki server. It captures essential request details such as the request method, URL, and remote address, ensuring structured logging for better observability and debugging.
Tracing middleware is responsible for instrumenting HTTP requests with OpenTelemetry tracing. It captures key request details, such as the request method, URL, and remote address, allowing for distributed tracing and improved observability. By integrating with OpenTelemetry, this middleware helps track request flows across services, making it easier to debug performance bottlenecks and failures.
Authentication is an authentication package that uses claims and JWT to manage user authentication.
It holds a middleware subpackages for handling JSON Web Tokens (JWT) to securely authenticate and authorize HTTP and HTTPS requests, ensuring that only valid and properly signed tokens are processed for access control and user verification.
Authentication is a middleware that uses JWT tokens to validate users authentication using context and claims.
Authentication is a middleware that uses context claims with Redis cache to validate JWT logged in tokens.