rp

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Director

func Director(req *http.Request)

Director is the object used by the ReverseProxy to pick the route/destination.

func GetRoutes

func GetRoutes() []config.Route

GetRoutes gets the current routes from the dynamic flag routes.json as object (deserialized).

func PrintRoutes

func PrintRoutes()

PrintRoutes prints the current value of the routes config (dflag).

func ReverseProxy

func ReverseProxy() *httputil.ReverseProxy

ReverseProxy returns a new reverse proxy which will route based on the config/dflags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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