reverseproxy

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 7 Imported by: 0

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

func ReverseProxyCommand() *gcli.Command

ReverseProxyCommand create command

Types

This section is empty.

Jump to

Keyboard shortcuts

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