https://github.com/abrander/ginproxy
A very simple proxy handler for gin-gonic
https://github.com/abrander/ginproxy
gin-gonic proxy
Last synced: 3 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T20:05:26.000Z (over 9 years ago)
- Last Synced: 2025-04-13T15:07:20.385Z (3 months ago)
- Topics: gin-gonic, proxy
- Language: Go
- Size: 1.95 KB
- Stars: 12
- Watchers: 2
- 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")
}
```