module
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Feb 28, 2025
License: MPL-2.0
Opens a new window with license information.
README
¶
Instalation
go get -u github.com/ecsavigne/proxy-reverse@latest
Example
import (
"github.com/ecsavigne/proxy-reverse/proxy"
"github.com/gin-gonic/gin"
)
func main() {
p := NewProxyReverse(proxy.ProxyReverse{
Host : "localhost"
// Port : ""
Protocol: "http"
})
g := gin.Default()
g.GET("/test1", p.RequestProxy())
g.Run(":7895")
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.