Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(targetHost string) (*httputil.ReverseProxy, error)
New takes target host and creates a reverse proxy.
func ProxyRequestHandler ¶
func ProxyRequestHandler(proxy *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)
ProxyRequestHandler handles the http request using proxy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.