handler

package
v0.0.0-...-685b352 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyHandler

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

func NewProxyHandler

func NewProxyHandler(logger zerolog.Logger) *ProxyHandler

func (*ProxyHandler) AddRoute

func (h *ProxyHandler) AddRoute(host string, proxy *httputil.ReverseProxy)

func (*ProxyHandler) GetRoutes

func (h *ProxyHandler) GetRoutes() []string

func (*ProxyHandler) RemoveRoute

func (h *ProxyHandler) RemoveRoute(host string)

func (*ProxyHandler) ServeHTTP

func (h *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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