Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chenhg5/gin-reverseproxy

Gin Reverse Proxy Middleware
https://github.com/chenhg5/gin-reverseproxy

Last synced: about 1 month ago
JSON representation

Gin Reverse Proxy Middleware

Awesome Lists containing this project

README

        

# Gin Reverse Proxy Middleware

proxy different domain request to different host through specified proxy rules

no need nginx just go

## usage

```

import proxy "github.com/chenhg5/gin-reverseproxy"

router.Use(proxy.ReverseProxy(map[string] string {
"www.xyz.com" : "localhost:4001",
"www.abc.com" : "localhost:4003",
}))

```

## todo

- [ ] Load balance
- [ ] Error handle
- [ ] specified route