proxy

package
v0.0.0-...-b0773c7 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxyMap = struct {
	sync.Mutex
	m map[string]*httputil.ReverseProxy
}{
	// contains filtered or unexported fields
}
View Source
var ProxyPorts = struct {
	sync.Mutex
	m map[string]int
}{
	// contains filtered or unexported fields
}
View Source
var ProxyRealName = struct {
	sync.Mutex
	m map[string]string
}{
	// contains filtered or unexported fields
}
View Source
var ProxyWorks = struct {
	sync.Mutex
	m map[string]*int
}{
	// contains filtered or unexported fields
}

Functions

func AddProxyServer

func AddProxyServer(routeName, containerName string, port int) error

func GetProxyServer

func GetProxyServer(name string) (*httputil.ReverseProxy, bool)

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

func RemoveProxyServer

func RemoveProxyServer(id string) (string, *int, int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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