proxysrv

package
v0.0.0-...-a71b45b Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*httputil.ReverseProxy
	// contains filtered or unexported fields
}

func New

func New(serverURL *url.URL, handler http.HandlerFunc, serverPool services.RobinService) *Service

New returns a new Proxy service

func (*Service) AddErrorHandler

func (p *Service) AddErrorHandler()

AddErroHandler adds an error handler to the revers proxy

func (*Service) ServeHTTPRequest

func (p *Service) ServeHTTPRequest(w http.ResponseWriter, r *http.Request)

ServeHTTPRequest is the reverse proxy handler

Jump to

Keyboard shortcuts

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