Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReverseProxy ¶
func ReverseProxy(targets ...*url.URL) *httputil.ReverseProxy
ReverseProxy create a global reverse proxy. usage:
rp := ReverseProxy(&url.URL{
Scheme: "http",
Host: "localhost:9091",
}, &url.URL{
Scheme: "http",
Host: "localhost:9092",
})
log.Fatal(http.ListenAndServe(":9090", rp))
func ReverseProxyCommand ¶
ReverseProxyCommand create command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.