proxy

package
v0.0.0-...-86c26d7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 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 Filter

type Filter = func(*http.Request) bool

type Proxy

type Proxy struct {
	Url *url.URL
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(replica replication.Replica, urlString string, filter Filter) (*Proxy, error)

func (*Proxy) Handle

func (p *Proxy) Handle(w http.ResponseWriter, r *http.Request)

func (*Proxy) ListenAndServe

func (p *Proxy) ListenAndServe(port string)

Jump to

Keyboard shortcuts

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