Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy interface { Start() error ServeHTTP(http.ResponseWriter, *http.Request) }
func NewReverseProxy ¶
func NewReverseProxy(conf *ProxyConfig) (Proxy, error)
type ProxyConfig ¶
type ProxyConfig struct { Routes []*RouteConfig Port int Trace bool LoggingOff bool EnableCORS bool }
type RouteConfig ¶
func NewRouteConfig ¶
func NewRouteConfig(route, strip string, target *url.URL) *RouteConfig
func SingleRoute ¶
func SingleRoute(route, strip string, target *url.URL) []*RouteConfig
func (RouteConfig) String ¶
func (r RouteConfig) String() string
Click to show internal directories.
Click to hide internal directories.