Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abrander/ginproxy
A very simple proxy handler for gin-gonic
https://github.com/abrander/ginproxy
gin-gonic proxy
Last synced: about 1 month ago
JSON representation
A very simple proxy handler for gin-gonic
- Host: GitHub
- URL: https://github.com/abrander/ginproxy
- Owner: abrander
- License: mit
- Created: 2016-01-29T19:28:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T20:05:26.000Z (almost 9 years ago)
- Last Synced: 2024-11-15T22:42:51.793Z (about 2 months ago)
- Topics: gin-gonic, proxy
- Language: Go
- Size: 1.95 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ginproxy
A very simple proxy handler for gin-gonicCan be used like this:
```go
import (
"github.com/gin-gonic/gin"
"github.com/abrander/ginproxy"
)func main() {
router := gin.Default()
g, _ := ginproxy.NewGinProxy("http://backend01.example.com/")
router.Any("/api/*all", g.Handler)
router.Run(":8080")
}
```