136 Resources
Golang middleware Libraries
🧬 fiber middleware to automatically generate RESTful API documentation with Swagger
Swagger fiber middleware to automatically generate RESTful API documentation with Swagger Usage Add comments to your API source code, See Declarative
Chix -- helper middleware and functionality for go-chi/chi
chix -- helper middleware and functionality for go-chi/chi 🔗 Table of Contents Usage Features Support & Assistance Contributing License ⚙️ Usage $ go
Gin-errorhandling - Gin Error Handling Middleware is a middleware for the popular Gin framework
Gin Error Handling Middleware Gin Error Handling Middleware is a middleware for
Gin adapter for standard net/http middleware
midgin An adapter to use standard net/http middleware in Gin. Overview Gin is a very capable web framework, but it does not directly support standard
⚡Simple cors middleware package for minima
This is package is wrapper based on rs/cors package made for minima. Geting Started Install the package using go get github.com/gominima/cors and call
SubCenter is a middleware that integrate task subscriptions and real-time push
Subscription Center SubCenter是一个集成各种任务并进行实时推送的中间件,本身不提供数据与推送服务。
Fiber middleware for server-timing
Server Timing This is a Fiber middleware for the [W3C Server-Timing API] based on mitchellh/go-server-timing
A simple passwordless authentication middleware that uses only email as the authentication provider
email auth A simple passwordless authentication middleware that uses only email as the authentication provider. Motivation I wanted to restrict access
Gin-cache - Gin cache middleware with golang
Gin-cache - Gin cache middleware with golang
Tendermint Core - A Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine
Tendermint Core - A Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine
A simple passwordless proxy authentication middleware using email.
email proxy auth A simple passwordless proxy authentication middleware that uses only email as the authentication provider. Motivation I wanted to res
A zerolog Logger/Recoverer middleware for chi.
zchi A zerolog Logger/Recoverer middleware for chi. Install go get -u github.com/Lavalier/zchi Usage package main import ( "net/http" "github.com/
Ultra performant API Gateway with middlewares. A project hosted at The Linux Foundation
The Lura Project framework An open framework to assemble ultra performance API Gateways with middlewares; formerly known as KrakenD framework, and cor
Gin Middleware to extract json tag value from playground validator's errors validation
Json Tag Extractor for Go-Playground Validator This is Gin Middleware that aim to extract json tag and than store it to FieldError.Field() object. Ins
EchoMiddleware - Echo Middleware with golang
EchoMiddleware middleware for echo server usage import ( "github.com/universe-3
Episodio V: Rise of the middleware
APITrials0.5 Episodio V: Rise of the middleware Captain's log: Up to date this file contains some simple errors to be corrected. They come from severa
Gin middleware for session.
wsession Gin middleware for session management with multi-backend support: cookie-based Redis memstore Usage Start using it Download and install it: g
Gin middleware/handler to enable CORS support.
wcors Gin middleware/handler to enable CORS support. Usage Start using it Download and install it: go get github.com/wyy-go/wcors Import it in your co
Auth - Authenticator via oauth2
auth - authentication via oauth2, direct and email This library provides "social login" with Github, Google, Facebook, Microsoft, Twitter, Yandex, Bat
Goat - A minimalistic JSON API server in Go
Goat - A minimalistic JSON API server in Go
RBAC - Simple, concurrent Role Based Access Control(GO)
RBAC - Simple, concurrent Role Based Access Control(GO) RBAC is role based access control library for GOlang. At core uses sync.Map so, it can be used
The fastest way to build a restful API with golang and echo framework.
The fastest way to build a restful API with golang and echo framework. Includes common required features for modern web applications. A boilerplate project with golang and Echo.
The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQL database and JWT authentication middleware stored in Redis
Welcome to Golang Gin boilerplate v2 The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQ
easy-middleware is a lightweight json middleware stack for Go = 1.7.
easy-middleware What is easy-middleware ? easy-middleware is a lightweight json middleware stack for Go = 1.7. Features: Dump incoming request middle
Easy to use, extendable and super fast logging package for Go
go-logger Easy to use, extendable and super fast logging package for Go Table of Contents Installation Documentation Examples & Tests Benchmarks Code
A lightweight API middleware for Julien Schmidt's router: cors, logging, and standardized error handling
go-api-router Lightweight API httprouter middleware: cors, logging, and standardized error handling. Table of Contents Installation Documentation Exam
Middleware for Blocking IP ranges by inserting CIDR Blocks and searching IPs through those blocks
firewall Middleware for Blocking IP ranges by inserting CIDR Blocks and searching IPs through those blocks. Features Easy to use Efficient and Fast Co
Auth0 Middleware for go labstack/echo
go-echo-auth0-middleware Auth0 Middleware for go labstack/echo Example package main import ( "net/http" "github.com/auth0/go-jwt-middleware/v2/val
Log4Shell is a middleware plugin for Traefik which blocks JNDI attacks based on HTTP header values.
Log4Shell Mitigation Log4Shell is a middleware plugin for Traefik which blocks JNDI attacks based on HTTP header values. Related to the Log4J CVE: htt
X-Response-Time middleware for fiber/v2
fiber-responsetime X-Response-Time middleware for fiber/v2 go get github.com/husanu/fiber-responsetime/v2 package main import ( "time" "github.com
Log4Shell: a middleware plugin for Traefik which blocks JNDI attacks based on HTTP header values
Traefik (pronounced traffic) is a modern HTTP reverse proxy and load balancer that makes deploying microservices easy. Traefik integrates with your ex
Scriptable server and net/http middleware for GitHub Webhooks.
gh Commands and packages for GitHub services. Installation ~ $ go get -u github.com/rjeczalik/gh webhook Package webhook implements middleware for Gi
Bootstrapper for golang application
rk-boot TODO: A new version is waiting to be released at master branch. The new version will not include direct dependencies of Gin, Echo, GoFrame and
Middleware for HTTP services in Go
Mid - Assorted middleware for HTTP services. This is mid, a collection of useful middleware for HTTP services. Err The Err function turns a func(http.
Bootstrapper and interceptor for gin framework. See https://rkdev.info/docs/ for details.
rk-gin Interceptor & bootstrapper designed for gin framework. Currently, supports bellow functionalities. Name Description Start with YAML Start servi
Go Route - Simple yet powerful HTTP request multiplexer
Few main features Minimal core. No external runtime dependencies. Custom middlewares which requires 3th party dependecies are places in separates repo
Prometheus middleware for wish
promwish Package promwish provides a simple wish middleware exposing some Prometheus metrics. Example Usage You can add promwish as a middleware to yo
Just a playground with some interesting concepts like pipelines aka middleware, handleFuncs, request validations etc. Check it out.
Pipeline a.k.a middleware in Go Just a playground with some interesting concepts like pipelines aka middleware, handleFuncs, request validations etc.
Header Block is a middleware plugin for Traefik to block request and response headers which regex matched by their name and/or value
Header Block is a middleware plugin for Traefik to block request and response headers which regex matched by their name and/or value Conf
Sugared logger for console with request id
📝 zlog You don't know what it's like, you don't have a clue If you did you'd find yourselves doing the same thing too Sugared logger for console with
Mev-boost: A middleware server written in Go
mev-boost A middleware server written in Go, that sits between an ethereum PoS consensus client and an execution client. It allows consensus clients t
FMOD Studio middleware integration and scripting API bindings for the Godot game engine.
I started developing this back in 2019 but no longer maintain it. If you found this recently and are looking to integrate FMOD into a new Godot projec
🚀 Copper is a Go toolkit complete with everything you need to build web apps.
Copper Copper is a Go toolkit complete with everything you need to build web apps. It focuses on developer productivity and makes building web apps in
The seed repository for your Flamego middleware modules
seed This repository contains seed files that almost every repository of Flamego middleware module should have. Using the content Create an empty repo
URL Rewrite middleware for gin
Url Rewrite middleware for gin Example In this exable these urls use the same route http://localhost:1234/test-me http://localhost:1234/index.php/test
Tendermint Core is a Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine
Tendermint Core is a Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine - written in any programming language - and securely replicates it on many machines.
JWT and Permission Middleware with MongoRPC
JWT and Permission Middleware with MongoRPC
HTTP API traffic recording and replay middleware based on GoReplay, can be used for migration and refactoring testing
gorc HTTP API traffic recording and replay middleware based on GoReplay, can be used for migration and refactoring testing. English | 中文 Requirements
A middleware plugin for Traefik which replace a header in the response
Rewrite Header Rewrite header is a middleware plugin for Traefik which replace a header in the response Configuration Static pilot: token: "xxxx" e
Bootstrapper and middleware for Echo framework in golang.
rk-echo Interceptor & bootstrapper designed for echo framework. Currently, supports bellow functionalities. Name Description Start with YAML Start ser
Auth Middleware for session & white-listed routing
Auth Middleware for session & white-listed routing
Coraza WAF Gin-gonic middleware
This is a test middleware for Ginonic powered by Coraza Web Application Firewall. You may check the WAF documentation at coraza.io Looking for contrib
Opinionated boilerplate Golang HTTP server with CORS, OPA, Prometheus, rate-limiter for API and static website.
Teal.Finance/Garcon Opinionated boilerplate HTTP server with CORS, OPA, Prometheus, rate-limiter… for API and static website. Origin This library was
Package captcha is a middleware that provides captcha service for Flamego
auth Package captcha is a middleware that provides captcha service for Flamego. Installation The minimum requirement of Go is 1.16. go get github.com/
Chi ip banner is a chi middleware that bans some ips from your Chi http server.
Chi Ip Banner Chi ip banner is a chi middleware that bans some ips from your Chi http server. It reads a .txt file in your project's root, called bani
jwt package for gin go applications
gin-jwt jwt package for gin go applications Usage Download using go module: go get github.com/ennaque/gin-jwt Import it in your code: import gwt "gith
fiber api key authentication middleware
fiber-key-auth Secure your fiber endpoints using API keys. Report Bug · Request Feature Table of Contents About The Project Built With Getting Started
Package i18n is a middleware that provides internationalization and localization for Flamego
i18n Package i18n is a middleware that provides internationalization and localization for Flamego. Installation The minimum requirement of Go is 1.16.
OAuth 2.0 middleware service for chi (ported from gin by community member)
oauth middleware OAuth 2.0 Authorization Server & Authorization Middleware for go-chi This library was ported to go-chi from https://github.com/maxzer
A microservice gateway developed based on golang.With a variety of plug-ins which can be expanded by itself, plug and play. what's more,it can quickly help enterprises manage API services and improve the stability and security of API services.
Goku API gateway is a microservice gateway developed based on golang. It can achieve the purposes of high-performance HTTP API forwarding, multi tenant management, API access control, etc. it has a powerful custom plug-in system, which can be expanded by itself, and can quickly help enterprises manage API services and improve the stability and security of API services.
Package cache is a middleware that provides the cache management for Flamego.
cache Package cache is a middleware that provides the cache management for Flamego. Installation The minimum requirement of Go is 1.16. go get github.
Simple router build on `net/http` supports custom middleWare.
XMUS-ROUTER Fast lightweight router build on net/http supports delegate and in url params. usage : Create new router using NewRouter() which need rout
EasyTCP is a light-weight and less painful TCP server framework written in Go (Golang) based on the standard net package.
EasyTCP is a light-weight TCP framework written in Go (Golang), built with message router. EasyTCP helps you build a TCP server easily fast and less painful.
ACL, RBAC, ABAC authorization middleware for KubeSphere
casbin-kubesphere-auth Casbin-kubesphere-auth is a plugin which apply several security authentication check on kubesphere via casbin. This plugin supp
OpenID Connect (OIDC) http middleware for Go
Go OpenID Connect (OIDC) HTTP Middleware Introduction This is a middleware for http to make it easy to use OpenID Connect. Currently Supported framewo
Package csrf is a middleware that generates and validates CSRF tokens for Flamego
csrf Package csrf is a middleware that generates and validates CSRF tokens for Flamego.
fastglue-csrf implements CSRF middleware for fastglue.
fastglue-csrf Overview fastglue-csrf implements CSRF middleware for fastglue.
Mortar is a GO framework/library for building gRPC (and REST) web services.
Mortar Mortar is a GO framework/library for building gRPC (and REST) web services. Mortar has out-of-the-box support for configuration, application me
A high performance gin middleware to cache http response. Compared to gin-contrib/cache, It has a huge performance improvement. 高性能gin缓存中间件,相比于官方版本,有明显性能提升。
A high performance gin middleware to cache http response. Compared to gin-contrib/cache. It has a huge performance improvement.
🦄🌈 YoyoGo is a simple, light and fast , dependency injection based micro-service framework written in Go.
🦄🌈 YoyoGo is a simple, light and fast , dependency injection based micro-service framework written in Go. Support Nacos ,Consoul ,Etcd ,Eureka ,kubernetes.
A lightweight job scheduler based on priority queue with timeout, retry, replica, context cancellation and easy semantics for job chaining. Build for golang web apps.
Table of Contents Introduction What is RIO? Concern An asynchronous job processor Easy management of these goroutines and chaining them Introduction W
Simple middleware to rate-limit HTTP requests.
Tollbooth This is a generic middleware to rate-limit HTTP requests. NOTE 1: This library is considered finished. NOTE 2: Major version changes are bac
Fault injection library in Go using standard http middleware
Fault The fault package provides go http middleware that makes it easy to inject faults into your service. Use the fault package to reject incoming re
Gaea is a mysql proxy, it's developed by xiaomi b2c-dev team.
简介 Gaea是小米中国区电商研发部研发的基于mysql协议的数据库中间件,目前在小米商城大陆和海外得到广泛使用,包括订单、社区、活动等多个业务。Gaea支持分库分表、sql路由、读写分离等基本特性,更多详细功能可以参照下面的功能列表。其中分库分表方案兼容了mycat和kingshard两个项目的路
:tongue: CleverGo is a lightweight, feature rich and high performance HTTP router for Go.
CleverGo CleverGo is a lightweight, feature rich and trie based high performance HTTP request router. go get -u clevergo.tech/clevergo English 简体中文 Fe
A collection of useful middleware for Go HTTP services & web applications 🛃
gorilla/handlers Package handlers is a collection of handlers (aka "HTTP middleware") for use with Go's net/http package (or any framework supporting
gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services 🔒
gorilla/csrf gorilla/csrf is a HTTP middleware library that provides cross-site request forgery (CSRF) protection. It includes: The csrf.Protect middl
Gzip Middleware for Go
An out-of-the-box, also customizable gzip middleware for Gin and net/http.
Simple and easy go web micro framework
DotWeb Simple and easy go web micro framework Important: Now need go1.9+ version support, and support go mod. Document: https://www.kancloud.cn/devfee
Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct handler, faygo will automatically bind/verify the request parameters and generate the online API doc.
Faygo Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define
lightweight, idiomatic and composable router for building Go HTTP services
chi is a lightweight, idiomatic and composable router for building Go HTTP services. It's especially good at helping you write large REST API services
The fastest HTTP/2 Go Web Framework. AWS Lambda, gRPC, MVC, Unique Router, Websockets, Sessions, Test suite, Dependency Injection and more. A true successor of expressjs and laravel | 谢谢 https://github.com/kataras/iris/issues/1329 |
News This is the under-development branch. Stay tuned for the upcoming release v12.2.0. Looking for a stable release? Head over to the v12.1.8 branch
Tigo is an HTTP web framework written in Go (Golang).It features a Tornado-like API with better performance. Tigo是一款用Go语言开发的web应用框架,API特性类似于Tornado并且拥有比Tornado更好的性能。
Tigo(For English Documentation Click Here) 一个使用Go语言开发的web框架。 相关工具及插件 tiger tiger是一个专门为Tigo框架量身定做的脚手架工具,可以使用tiger新建Tigo项目或者执行其他操作。
A suite of gRPC debugging tools. Like Fiddler/Charles but for gRPC.
grpc-tools A suite of tools for gRPC debugging and development. Like Fiddler/Charles but for gRPC! The main tool is grpc-dump which transparently inte
lightweight, idiomatic and composable router for building Go HTTP services
chi is a lightweight, idiomatic and composable router for building Go HTTP services. It's especially good at helping you write large REST API services
Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.
Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.
This is only a mirror and Moved to https://gitea.com/lunny/tango
Tango 简体中文 Package tango is a micro & pluggable web framework for Go. Current version: v0.5.0 Version History Getting Started To install Tango: go get
Simple HTTP and REST client library for Go
Resty Simple HTTP and REST client library for Go (inspired by Ruby rest-client) Features section describes in detail about Resty capabilities Resty Co
Idiomatic HTTP Middleware for Golang
Negroni Notice: This is the library formerly known as github.com/codegangsta/negroni -- Github will automatically redirect requests to this repository
Dead simple rate limit middleware for Go.
Limiter Dead simple rate limit middleware for Go. Simple API "Store" approach for backend Redis support (but not tied too) Middlewares: HTTP, FastHTTP
Go http middleware handler for request coalescing
HTTP Coala NOTE: a new and improved implementation is available at https://github.com/go-chi/stampede Just a little bit of performance enhancing middl
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Gin Web Framework Gin is a web framework written in Go (Golang). It features a martini-like API with performance that is up to 40 times faster thanks
Package telnet provides TELNET and TELNETS client and server implementations, for the Go programming language, in a style similar to the "net/http" library that is part of the Go standard library, including support for "middleware"; TELNETS is secure TELNET, with the TELNET protocol over a secured TLS (or SSL) connection.
go-telnet Package telnet provides TELNET and TELNETS client and server implementations, for the Go programming language. The telnet package provides a
Useful HTTP middlewares
This project contains middlewares that I often found myself reimplementing in new projects. In addition, it includes a middleware that logs in a forma
A powerful HTTP router and URL matcher for building Go web servers with 🦍
gorilla/mux https://www.gorillatoolkit.org/pkg/mux Package gorilla/mux implements a request router and dispatcher for matching incoming requests to th
Go Router + Middleware. Your Contexts.
gocraft/web gocraft/web is a Go mux and middleware package. We deal with casting and reflection so YOUR code can be statically typed. And we're fast.
FastRouter is a fast, flexible HTTP router written in Go.
FastRouter FastRouter is a fast, flexible HTTP router written in Go. FastRouter contains some customizable options, such as TrailingSlashesPolicy, Pan