proxy-reverse

module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: MPL-2.0

README

Create handler by proxy reverse

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL