reverse_proxy

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEchoServerAddressToPathPrefixes

func GetEchoServerAddressToPathPrefixes() (map[*url.URL][]string, error)

Types

type ReverseProxyHandler

type ReverseProxyHandler struct {
	// contains filtered or unexported fields
}

ReverseProxyHandler tracks registered paths to their associated proxy backends. This is used to dynamically update the proxy middleware based off of the service registry

func NewReverseProxyHandler

func NewReverseProxyHandler() *ReverseProxyHandler

NewReverseProxyHandler initializes a ReverseProxyHandler

func (*ReverseProxyHandler) AddReverseProxyPaths

func (r *ReverseProxyHandler) AddReverseProxyPaths(server *echo.Echo, pathPrefixesByAddr map[*url.URL][]string) (*echo.Echo, error)

AddReverseProxyPaths adds reverse proxying from the echo server to every service that has registered obsidian handlers. The proxying is based off of the path prefixes that have been registered in the services' annotations.

Jump to

Keyboard shortcuts

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